Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
34.84k stars 1.97k forks source link

Can't login - Something went wrong #7358

Open sdragnev opened 6 months ago

sdragnev commented 6 months ago

update from Insomnia team: see https://github.com/Kong/insomnia/issues/7358#issuecomment-2090962167

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

tlund101 commented 6 months ago

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

JohnnySanabria commented 6 months ago
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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

Same issue here

sdragnev commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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

mauriciodaluz commented 6 months ago

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 commented 6 months ago

Opened a discussion on removing the forced login: https://github.com/Kong/insomnia/discussions/7362

filfreire commented 6 months ago

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 commented 6 months ago

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

Zervandez commented 6 months ago

I'm having the same issue in Ubuntu.

JohnBarhorst-mastery commented 6 months ago

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

-- got in right after posting this.

chrismowbray commented 6 months ago

I just got in.

Zervandez commented 6 months ago

@chrismowbray me too.

subnetmarco commented 6 months ago

We are currently investigating this issue.

phsc84 commented 6 months ago

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

gatzjames commented 6 months ago

👋 @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 commented 5 months ago

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

notjaywu commented 5 months ago

@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 commented 5 months ago

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

phsc84 commented 5 months ago

👋 @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.

solorisx commented 5 months ago

I am no longer able to login (with 9.2.0):

image

The GET request to https://api.insomnia.rest/auth/whoami with the same headers works fine if I try it in Postman. Do you have any idea how to solve this?

Version: Insomnia 9.2.0 Build date: 15.5.2024 OS: Windows_NT x64 10.0.19045 Electron: 29.3.0 Node: 20.9.0 Node ABI: 121 V8: 12.2.281.27-electron.0 Architecture: x64

EDIT: Downgrading to 9.1.0 fixed the issue for me, the whoami request no longer fails.

notjaywu commented 5 months ago

@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 commented 5 months ago

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

image

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

image

notjaywu commented 5 months ago

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 commented 5 months ago

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

filfreire commented 5 months ago

@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 commented 5 months ago

@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 commented 4 months ago
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 commented 4 months ago

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 commented 4 months ago

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

image image
subnetmarco commented 4 months ago

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

JolietBlues commented 4 months ago

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 commented 4 months ago

@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 commented 4 months ago

@thommierother yes this makes sense.

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

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 3 months ago

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

notjaywu commented 3 months ago

@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 commented 2 months ago

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 :disappointed:

notjaywu commented 2 months ago

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

image
marc0der commented 2 months ago

@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 commented 2 months ago

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

  1. Continue with Google/GitHub/Email

    image
  2. After login, you should see this dialog and click the Manually enter token

    image
  3. Paste the token and click the Log in button

    image
  4. You should see all your data in the app

    image
marc0der commented 2 months ago

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 commented 2 months ago

Same problem here..