Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't login - Something went wrong #7358

Open
1 task done
sdragnev opened this issue May 2, 2024 · 52 comments
Open
1 task done

Can't login - Something went wrong #7358

sdragnev opened this issue May 2, 2024 · 52 comments
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@sdragnev
Copy link

sdragnev commented May 2, 2024

update from Insomnia team: see #7358 (comment)

Expected Behavior

Logging in with email at https://app.insomnia.rest/app/authorize/email, I should receive an authorization code and auth code should work.

Actual Behavior

Sometimes sending the auth code fails with "Something went wrong".
Sometimes I get the code but entering it on the website results in an error.
I have not been able to login successfully.

Reproduction Steps

No response

Is there an existing issue for this?

Additional Information

POST to https://app.insomnia.rest/app/authorize/email?_data=routes/app.authorize.email returns a 500 error with this result:

{"message":"Unexpected Server Error"}

How can I view my projects if the login server is not working?

Thanks.

Insomnia Version

9.0

What operating system are you using?

Other Linux

Operating System Version

openSuse

Installation method

snap package

Last Known Working Insomnia version

No response

@sdragnev sdragnev added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels May 2, 2024
@tlund101
Copy link

tlund101 commented May 2, 2024

Similar issue here when loading Organizations. Insomnia simply won't load for me now

@JohnnySanabria
Copy link

image I'm also having an issue with login. Upon opening the application, it hangs for a while and eventually starts display the message in the image.

@NoahCxrest
Copy link

NoahCxrest commented May 2, 2024

Same issue here.
I think that Insomnia's website that faces the app is down, judging by the fact that it uses Electron.
Hope this is fixed soon!

Edit: insomnia-api://insomnia/v1/organizations times out and does not respond (on macOS)

@sdragnev
Copy link
Author

sdragnev commented May 2, 2024

image

Something did go wrong indeed.
A perfectly good application was made vulnerable to server issues in the name of the mighty dollar.

I don't want to rant at hard-working developers but this is a perfect example of why software-as-a-service is horrible for users.

@NoahCxrest
Copy link

image

Something did go wrong indeed. A perfectly good application was made vulnerable to server issues in the name of the mighty dollar.

I don't want to rant at hard-working developers but this is a perfect example of why software-as-a-service is horrible for users.

Could you explain? I'm not that up-to-date with Insomnia.
What's new?

@jose-vass-itti
Copy link

Same issue here

@sdragnev
Copy link
Author

sdragnev commented May 2, 2024

Could you explain? I'm not that up-to-date with Insomnia. What's new?

The app didn't use to require a login to access your data. Which was the reason I preferred it to Postman.

@JohnnySanabria
Copy link

JohnnySanabria commented May 2, 2024

image
Something did go wrong indeed. A perfectly good application was made vulnerable to server issues in the name of the mighty dollar.
I don't want to rant at hard-working developers but this is a perfect example of why software-as-a-service is horrible for users.

Could you explain? I'm not that up-to-date with Insomnia. What's new?

In my experience, when Insomnia updates the application, stuff typically ends up breaking, or they change the UX in some small annoying way. Like, you used to be able to right-click on requests to bring up a menu, but now you have to click on the tiny little carrot. So, in an effort to innovate, they sometimes break or lose existing features which is obnoxious.

In today's situation, I got a notice when opening the app about all the wonderful new features they just added and then I couldn't login to the app.

@rmzi
Copy link

rmzi commented May 2, 2024

App is moving at a snail's pace after the most recent update -- any word on a fix?

@mauriciodaluz
Copy link

I'm facing the same issue! Does anyone know if it's possible to retrieve collection data directly from the Insomnia config folder? I'm in a hurry and just need my collection (using linux mint)

@ryanholden8
Copy link

Opened a discussion on removing the forced login: #7362

@filfreire
Copy link
Member

Hi folks, we were experiencing issues with the Insomnia API infrastructure.

It should be back working now. We're investigating the issue further to prevent it from happening again.

We'll share more details as soon as possible.

@chrismowbray
Copy link

chrismowbray commented May 6, 2024

@filfreire Currently seeing this issue today. Attempting sing in with Google SSO. Spins for a while, then errors with Invalid authorization code

@Zervandez
Copy link

I'm having the same issue in Ubuntu.

@JohnBarhorst-mastery
Copy link

JohnBarhorst-mastery commented May 6, 2024

Same issue here, can't login with email credentials.

-- got in right after posting this.

@chrismowbray
Copy link

I just got in.

@Zervandez
Copy link

@chrismowbray me too.

@subnetmarco
Copy link
Member

We are currently investigating this issue.

@phsc84
Copy link

phsc84 commented May 8, 2024

I'm having the same problem. Really annoying. A quick solution would be much appreciated.
image

@gatzjames
Copy link
Contributor

👋 @phsc84 this seems to be an actual issue with an invalid code.
Can you try again? I'd suggest clicking on "Launch" to automatically launch the app:
image

@ilyasKerbal
Copy link

ilyasKerbal commented May 13, 2024

Faced this problem today: "Invalid code: Failed to fetch"
Screenshot 2024-05-13 at 10 07 47

@notjaywu
Copy link
Contributor

@ilyasKerbal Could share the Console logs? You can find it at View -> Toggle DevTools -> Console. It helps us identify the root cause, thank you!

Screenshot 2024-05-13 at 19 44 15 Screenshot 2024-05-13 at 19 44 30

@ilyasKerbal
Copy link

@notjaywu Thanks for the guidance I was able to solve the problem

@phsc84
Copy link

phsc84 commented May 15, 2024

👋 @phsc84 this seems to be an actual issue with an invalid code. Can you try again? I'd suggest clicking on "Launch" to automatically launch the app: image

Whatever has changed, today it works again!

As our internet browser is in an isolated environment the "Launch" button does not work and I always have to paste the token manually.

@notjaywu
Copy link
Contributor

notjaywu commented May 21, 2024

@solorisx did you set x-session-id when testing in Postman? Seems the request /auth/whoami from v9.2.0 doesn't include the header x-session-id.

@solorisx
Copy link

@notjaywu Yes, I did. I used these headers:

image

The request from 9.2.0 does seem to include the session id:

image

@notjaywu
Copy link
Contributor

notjaywu commented May 21, 2024

thanks for your information @solorisx. did you get any response code from the backend for the /auth/whoami requests? I just noticed that it doesn't show the status code in the General section in your image.

@solorisx
Copy link

@notjaywu I did not get a status code back, just net::ERR_UNEXPECTED.

@filfreire
Copy link
Member

@solorisx when you send exact same request via CURL, does it work then? (asking because sometimes sending through postman is not sending directly from our machines, but through postman servers)

@solorisx
Copy link

@filfreire Yes, it works via CURL (we only use Postman locally, not through Postman servers). Although 9.2.0 works again today as well, so not sure what the problem was.

@plopezlpz
Copy link

Screenshot 2024-06-12 at 17 36 18

Disable proxy in settings and it works, it was happening to me that insomnia applies the proxy for cloud sync and if the proxy is not currently working it does not reach the server

@thommierother
Copy link

same issue here with 9.2 AppImage on SUSE Tumbleweed. I am using an account with paid 1 year subscription.

disabling proxy: I see not option to disable the proxy from the insomnia 9.2 start screen. The functionality is bad at this point: I dont need a proxy for startup, but I need a proxy when testing against a corporate API. How can I activate/deactivate proxy for specific REST apis but NOT globally for the whole app?

@insomnia team: please fix this immediately, the app is unusable even for paying customers!

@notjaywu
Copy link
Contributor

@thommierother Proxy is a global option. You can go to the Scratch Pad and disable it in the preferences:

image image

@subnetmarco
Copy link
Member

@thommierother Do you confirm that disabling the proxy resolves your issue at login time?

@JolietBlues
Copy link

JolietBlues commented Jun 20, 2024

same issue with 9.2.0, can't login also disabling the proxy.
In Console Log the error is:
Failed to load resource: net::ERR_UNEXPECTED api.insomnia.rest/auth/whoami:1

@thommierother
Copy link

@subnetmarco I did not test without proxy yet. But I also have the problem that for the login process on my laptop I can use a direct connect (without proxy). But for the REST requests I am testing after the login, I need a connection which is proxied through a corporate proxy server. And as far as I understood it until know, I can not have "project/collection-specific proxy settings, only global ones for the application.

I may have misunderstood the UI, but if this the case, it would be a major disadvantage when using insomnia with corporate APIs. They are very often only accessible from an active VPN plus a proxy for accessing some backends. So you definitely need separate proxy-settings (yes/no) for the login phase of insomnia and the testing work which happens later and with different network configs behind.

@subnetmarco
Copy link
Member

@thommierother yes this makes sense.

Do you think it would be helpful to have a setting that allows to choose:

  • If the proxy is active during login phase
  • If the proxy is active during regular usage of the applications across all projects and files

Or is a per-project proxy setting needed in your scenario? So that some projects will go through the proxy, and some other won't. This is harder to implement so I am trying to scope this out.

@thommierother
Copy link

In my setup I have a normal internet connection (depending on the location which may be at home or co-working) and then I open up an additional VPN connection. From the VPN I have access to corporate servers.

Some of the corp server are routed directly on the VPN (without proxy-settings in the browser). 0thers are routed through a proxy in the browser (we do this with FoxyProxy in Firefox). This proxy is also internal/only visible on the VPN network. On the other hand, it only allows requests coming from the VPN network.

So, although its harder, a "per project" setting would be the right thing imho.

@thommierother
Copy link

Note: on the scratch screen "Authorizing Insomnia" I have no option to disable the global proxy settings directly. I assume I have to go into the file based settings through CLI.

@subnetmarco
Copy link
Member

We implemented an intermediate step in 9.3.2 that allows to see if the proxy is in use, or not. This footer has also been introduced in the login form of the application, so it's always noticeable without having to explicitly go to the preferences:

Screenshot 2024-07-04 at 5 50 44 PM

The preferences also made the proxy settings explicit in their own section:

Screenshot 2024-07-04 at 5 51 06 PM

I believe at this point the only missing action is to provide a setting in the "Proxy" preferences to optionally disable the proxy during login phase.

@thommierother
Copy link

Thanks for the fast change, Yes I agree, disabling during login would be fine.
In general I would prefer to have different proxies for different APIs/collections, but I assume thats a bit tricky. At my company we have INT environments which are only available through a proxy (because the API behind blocks requests coming from foreign IP sources) and others which are only available through another proxy because the mass of users in THAT network use MS Windows and are re-directed through group policies to some kind of security firewall with content analysis. "Enterprise IT" ... ;-)

@DouweBos
Copy link

DouweBos commented Aug 6, 2024

Any updates on this issue?
I am not connected to a proxy and have not been able to sign in for months now.

@notjaywu
Copy link
Contributor

notjaywu commented Aug 7, 2024

@DouweBos Could you log in again? If you still encounter any errors, please join this Slack channel https://chat.insomnia.rest, I can DM you for more information.

@marc0der
Copy link

Login is utterly broken on Linux (again). It's shocking to see how bad this software has become.

I opened the app and was faced with a login page. I then login with my email address and get redirected to my browser, where I sign in using the OTP flow. Instead of being redirected back to the app immediately as I'd expect, I find myself in some management page. Here I have the option of opening Insomnia, so when I click the button nothing happens!

The deep link back into the application is completely broken, tested with native, flatpak and AppImage versions. This means that I can't access my collections. I'm now stuck in a loop where I am offered to Authorize Insomnia with something that says:

If your browser does not open the Insomnia app automatically, you can manually add the generated token here.

Selection_048

What token? Where does this come from? I certainly can't find it on the management page. Is it somewhere else?

I came here from Postman because Insomnia was so simple and it just worked. If things don't get better very soon, I'll be going back 😞

@notjaywu
Copy link
Contributor

@marc0der You can copy the token by clicking Manually enter token

image

@marc0der
Copy link

marc0der commented Aug 22, 2024

@notjaywu I don't have any such option. When I click the "open" button, the browser tries to open Insomnia, but it fails.

Selection_049

I also have no Launch Insomnia desktop popup.

@notjaywu
Copy link
Contributor

You can't open the app if the app doesn't log in yet.

  1. Continue with Google/GitHub/Email
image
  1. After login, you should see this dialog and click the Manually enter token
image
  1. Paste the token and click the Log in button
image
  1. You should see all your data in the app
image

@marc0der
Copy link

marc0der commented Aug 22, 2024

Right, Step 2 does not occur. Instead, I get prompted for my passphrase. After I enter the passphrase, it goes directly to the management page. I think you might have a bug. This is tested in Brave browser with shields down.

@guguehub
Copy link

Same problem here..

@marckong
Copy link
Contributor

@marc0der Given that entering the passphrase went successfully, it may not be login issue, but a browser cookie related issue. Is there anything that prevents cookie to be set with Brave Browser? I would be happy to jump on a call and troubleshoot if you want. Please DM me in our community slack: https://getinsomnia.slack.com/

@notjaywu
Copy link
Contributor

@marc0der @guguehub Could you both join our community Slack channel? I can DM you and ask for more information.

@marc0der I can't reproduce this issue in my Brave browser, I can see the Lauch Insomnia desktop dialog. Could you share the network and console logs? It helps us identify the root cause. Thanks.

Screenshot 2024-08-23 at 12 10 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests