-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Could not generate cURL - strict mode: unknown keyword: "afterRequest" error. #6279
Comments
I am experiencing the exact same issue since an hour ago or less. Alongside this, after the recent automatic upgrade, I've observed a problem where modifications to a request aren't being saved. Specifically, after editing a request, if I navigate to view a different request and then return to the previously modified request, all the changes seem to have been discarded. |
Thanks for confirming what I see, @ignaciospeicys ! I also have seen behaviors where changes to requests haven't been getting saved, but I can't repro it consistently (i.e. sometimes it seems to work okay but I have lost a few too). Hopefully they can get our issues worked out. |
@smheaton Thanks for the report, seems like it could be an issue with the httpsnippet and ajv dependency, and a difference between the local dev and packaged release. Will investigate further and get a minor bump out as soon as we can. (I suspect its a bundling issue) @ignaciospeicys Could you provide more information about the particular fields that didn't persist. We recently moved our state management mechanism from redux to remix-run so I'm very curious if we missed anything in the migration. |
Also having this issue when trying to Copy as cURL |
This issue is fixed in 2023.5.2 which will be available shortly. |
Upgraded to 2023.5.2 and both features work great for me now. Thanks for the quick turnaround, @jackkav ! |
Expected Behavior
I should be able to generate a curl statement or a code snippet from a request.
Actual Behavior
Two request options no longer work for me in 2023.5.0. If I try the "Generate Code" option:
...the dialog that appears won't let me change the dropdown options:
If I try the "Copy as curl" option in the same menu for a request, I get an error dialog:
Reproduction Steps
Result: A dialog appears that says "Could not generate cURL" with a message below it that says, "strict mode: unknown keyword: "afterRequest""
Is there an existing issue for this?
Additional Information
I rolled back using the Insomnia.Core-2023.3.0 executable and did not see either problem anymore.
Insomnia Version
2023.5.0
What operating system are you using?
Windows
Operating System Version
Windows 10 Pro 19045.3324 and Windows 11 Enterprise 22621.1992
Installation method
Automatic Upgrade form Previous Version
Last Known Working Insomnia version
2023.3.0
The text was updated successfully, but these errors were encountered: