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.34k stars 1.93k forks source link

Error syncing with Insomnia Cloud #6955

Open mrjimhubbard opened 8 months ago

mrjimhubbard commented 8 months ago

Expected Behavior

Project should sync with Insomnia cloud when Secure Cloud is selected for the project.

Actual Behavior

I am getting an error in bottom left corner saying "Error syncing with Insomnia Cloud" i7 SNAG- 12-30-2023 10 34 42 PM

Even though the project was created to sync with the cloud.... i7 SNAG- 12-30-2023 10 33 13 PM

Reproduction Steps

I just opened Insomnia - after it made me use secure login again. I guess I need to record my entire coding sessions now if I use Insomnia...

Is there an existing issue for this?

Additional Information

There is a similar issue at https://github.com/Kong/insomnia/issues/6842 - but no mention of the error message.

It would be really nice if we could do these reports from inside Insomnia - maybe with screenshots and let it upload all the info you need....

Insomnia Version

8.5.1

What operating system are you using?

Windows

Operating System Version

Windows 10 22H2

Installation method

download from the website

Last Known Working Insomnia version

unknown

yonatanaduk commented 8 months ago

Hi, i have this problem also.

subnetmarco commented 8 months ago

This shouldn't happen - does this happen if you create a new collection? It seems that you ended up in an inconsistent state due to mishandling on an error state from our part.

ryuuusagi commented 8 months ago

I'm experiencing the exact same issue in Windows 10 build 10240. Insomnia version 8.5.1, like OP. Additionally, when trying to create a new collection, I get this error message:

Error: Failed to deserialize key=/projects/prj_96be9d7f1afe4b54b203e591b0602384/meta.json err=SyntaxError: Unexpected token '', ""... is not valid JSON at H$e.getItem (file:///C:/Users/IABE/AppData/Local/insomnia/app-8.5.1/resources/app.asar/index-f6dc2321.js:509:23710) at async j5._allBackendProjects (file:///C:/Users/IABE/AppData/Local/insomnia/app-8.5.1/resources/app.asar/index-f6dc2321.js:666:3015) at async j5._getBackendProjectByRootDocument (file:///C:/Users/IABE/AppData/Local/insomnia/app-8.5.1/resources/app.asar/index-f6dc2321.js:666:2135) at async j5._getOrCreateBackendProjectByRootDocument (file:///C:/Users/IABE/AppData/Local/insomnia/app-8.5.1/resources/app.asar/index-f6dc2321.js:666:2704) at async j5.switchAndCreateBackendProjectIfNotExist (file:///C:/Users/IABE/AppData/Local/insomnia/app-8.5.1/resources/app.asar/index-f6dc2321.js:509:30515) at async D$e (file:///C:/Users/IABE/AppData/Local/insomnia/app-8.5.1/resources/app.asar/index-f6dc2321.js:509:20176) at async Module.Ze (file:///C:/Users/IABE/AppData/Local/insomnia/app-8.5.1/resources/app.asar/actions-75c6cc4c.js:4:8445) at async H8 (file:///C:/Users/IABE/AppData/Local/insomnia/app-8.5.1/resources/app.asar/index-f6dc2321.js:55:3729) at async q (file:///C:/Users/IABE/AppData/Local/insomnia/app-8.5.1/resources/app.asar/index-f6dc2321.js:54:20308)

image

notjaywu commented 8 months ago

@mrjimhubbard Is Streamline an existing collection or a newly created one?

notjaywu commented 8 months ago

Hi, i have this problem also.

@yonatanaduk could you provide more details:

  1. What is your account email address?
  2. Which project can't sync with Insomnia Cloud?

Can Duplicate solve this issue?

image
yonatanaduk commented 7 months ago

hi @notjaywu

It's happened to me on the account of my team, we have a few collections, and all of them with the same error I tried to duplicate it but still have the same error

image

gabdanReply commented 7 months ago

I have the same Issue

notjaywu commented 7 months ago

@yonatanaduk @gabdanReply Could you share what you did before this issue happened?

gabdanReply commented 7 months ago

@yonatanaduk @gabdanReply Could you share what you did before this issue happened?

nothing, we used the application normally

gatzjames commented 7 months ago

@gabdanReply if you open the menu it should display a more verbose error. Can you share the error it will help us debug the reason this issue is happening.

bangprovn commented 7 months ago

My project is having the same issue, the only thing I did is switching from syncing between macOS and Windows. Now all of my project can't sync

yonatanaduk commented 7 months ago

@gatzjames I opened the devs tool and this is what i see :

image

yonatanaduk commented 7 months ago

@gatzjames i deleted all the files from my PC, Download Insomnia again and the problem solved

image

stuart201 commented 7 months ago

I have this same issue

abdullahmvn commented 7 months ago

These steps solved my problem

  1. Insomnia Menu -> Help -> Show App data folder = delete the selected folder
  2. Insomnia Menu -> Help -> Show App logs folder = delete the logs folder
arif-mvn commented 7 months ago

These steps solved my problem

  1. Insomnia Menu -> Help -> Show App data folder = delete the selected folder
  2. Insomnia Menu -> Help -> Show App logs folder = delete the logs folder

@abdullahmvn Thanks bro..........Saved my time and energy.

m0hammed-ragab commented 4 months ago

These steps solved my problem

  1. Insomnia Menu -> Help -> Show App data folder = delete the selected folder
  2. Insomnia Menu -> Help -> Show App logs folder = delete the logs folder

work fine thanks @abdullahmvn

notjaywu commented 4 months ago

It should have been fixed in v9.0. Close this issue.

scottie commented 4 months ago

Still the same results in 9.1.0 @notjaywu

notjaywu commented 4 months ago

hi @scottie, could you share the screenshot of the console errors here? If it happened before upgrading to 9.1.0, you have to follow @abdullahmvn 's steps above to repair this issue.

Screenshot 2024-05-13 at 09 31 25
skiat commented 3 months ago

Hello there, it happened to me (v9.2.0) and was able to fix coping the meta.json data from the latest meta.json.XXXXXXXXX.tmp

so that I avoided to reinstall and setup everything ;)

subnetmarco commented 3 months ago

@notjaywu @gatzjames this issue still persists, re-opening the ticket.

rich-grundy-paytently commented 3 months ago

I'm seeing a similar issue today when trying to migrate our team over to Insomnia from Postman, seeing the following sync error and these in the console:

image image image

Version: Insomnia 9.2.0 on iOS

Any help would be appreciated.

notjaywu commented 3 months ago

@rich-grundy-paytently The error shows that you don't have access to this collection.

mrjimhubbard commented 3 months ago

Me too - I don't guess it'll ever get fixed.

i7 SNAG- 6-11-2024 7 45 19 AM

rich-grundy-paytently commented 3 months ago

@rich-grundy-paytently The error shows that you don't have access to this collection.

It's my collection though

subnetmarco commented 3 months ago

@rich-grundy-paytently to add more information:

rich-grundy-paytently commented 3 months ago

@subnetmarco -

Collection in my personal workspace. The plan is to invite my team as collaborators.

The collection worked fine and then when I came back to it later in the day I saw the above sync error message. Finding this Github issue I followed the above suggestion of deleting the App data folder and Logs and restarted the application. However when I logged back into my account while the Workspace existed there were no collections...

At this point I reimported the collection and continued, after pushing multiple commits successfully and using the application I then get this error again and I'm back to square one

Please let me know if you need any other details, thanks!

notjaywu commented 3 months ago

@rich-grundy-paytently Could you join our community Slack channel via https://chat.insomnia.rest, I can DM you for more details, thanks.

rich-grundy-paytently commented 3 months ago

@notjaywu - Done, feel free to message me

notjaywu commented 3 months ago

This issue has been fixed. If you encounter this issue, please duplicate the affected collections or documents, thank you! image

notjaywu commented 3 months ago

@mrjimhubbard Can you try to duplicate the collection? If it isn't fixed, please also try the method provided by @abdullahmvn above.

subnetmarco commented 2 months ago

@rich-grundy-paytently are you running Insomnia on Windows?

rich-grundy-paytently commented 2 months ago

@subnetmarco - No, Mac iOS 13.5 This issue has now been resolved for me following some work by @notjaywu

isadfrn commented 2 months ago

These steps solved my problem

  1. Insomnia Menu -> Help -> Show App data folder = delete the selected folder
  2. Insomnia Menu -> Help -> Show App logs folder = delete the logs folder

work fine thanks @abdullahmvn

After trying this fix, I lost my collection, luckily my team colleagues had an copy and I was able to import the missing data. Seams that this is still happening on 9.2.0.

Screenshot 2024-06-25 at 14 13 58
notjaywu commented 2 months ago

@isadfrn have you just upgraded from v8.3? or you have upgraded to v9.2 for a long time and this issue happened suddenly.

isadfrn commented 2 months ago

I've upgraded to v9.2 for a long time and this issue happened suddenly.

marckong commented 2 months ago

@isadfrn please DM us with your account email addresses. https://getinsomnia.slack.com

bneumann commented 2 months ago

Hey guys, I had the same problem and I solved it by removing the folder under %APPDATA%/Roaming/Insomnia. I exported all my collections first (just to be sure) and renamed that folder. So Insomnia came up clean again. After that I connected to my account, downloaded the collections and used the import feature to apply my local changes. It doesn't complain anymore about not being connected now. Hopefully it stays that way

EDIT: After 4 weeks I have the same error