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

Feature request: Re-add paste CURL on URL bar #6338

Closed
1 task done
rogiermulders opened this issue Aug 20, 2023 · 15 comments · Fixed by #6384
Closed
1 task done

Feature request: Re-add paste CURL on URL bar #6338

rogiermulders opened this issue Aug 20, 2023 · 15 comments · Fixed by #6384
Labels
C-improvement Category: Improvement / Enhancement S-verified Status: Verified by maintainer

Comments

@rogiermulders
Copy link

rogiermulders commented Aug 20, 2023

Expected Behavior

When I past a curl command (copied from Chrome with 'copy as CURL) I expect Insomnia to parse it and I can replay the chrome call in Insomnia:

This has been working forever and is extremely usefull to ne,

Actual Behavior

Gives me an error

Screenshot from 2023-08-20 09-40-32

Reproduction Steps

Past this:

curl 'https://jsonplaceholder.typicode.com/posts'
-H 'authority: jsonplaceholder.typicode.com'
-H 'accept: /'
-H 'accept-language: en-US,en;q=0.9,nl;q=0.8'
-H 'cache-control: no-cache'
-H 'content-type: application/json; charset=UTF-8'
-H 'origin: http://localhost:3001'
-H 'pragma: no-cache'
-H 'referer: http://localhost:3001/'
-H 'sec-ch-ua: "Not/A)Brand";v="99", "Google Chrome";v="115", "Chromium";v="115"'
-H 'sec-ch-ua-mobile: ?0'
-H 'sec-ch-ua-platform: "Linux"'
-H 'sec-fetch-dest: empty'
-H 'sec-fetch-mode: cors'
-H 'sec-fetch-site: cross-site'
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36'
--data-raw '{"title":"foo","body":"bar","userId":1}'
--compressed

In the address bar of insomnia

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

Version: Insomnia 2023.5.5 Build date: 8/18/2023 OS: Linux x64 6.2.0-26-generic Electron: 25.2.0 Node: 18.15.0 Node ABI: 116 V8: 11.4.183.23-electron.0 Architecture: x64

What operating system are you using?

Ubuntu

Operating System Version

Linux ubuntu 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Installation method

SNAP

Last Known Working Insomnia version

The version

@rogiermulders rogiermulders added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Aug 20, 2023
@arfathyahiya
Copy link

Same issue here
I tried both options

  • copy as cURL (windows)
  • copy as cURL (POSIX)

with these features not working it's kinda annoying to manually input all data in it (which doesn't make sense)
please try to give this bug top priority

Current Version details:

Version: Insomnia 2023.5.5
Build date: 19/8/2023
OS: Windows_NT x64 10.0.19045
Electron: 25.2.0
Node: 18.15.0
Node ABI: 116
V8: 11.4.183.23-electron.0
Architecture: x64

Thanks :)

@filfreire
Copy link
Member

@rogiermulders @arfathyahiya you should still be able to import from Curl by using the new request dropdown From Curl option:

image

@filfreire filfreire added S-verified Status: Verified by maintainer and removed S-unverified Status: Unverified by maintainer labels Aug 21, 2023
@pharmacord-paul
Copy link

Why was this functionality removed? It was very good and intuitive.

@arfathyahiya
Copy link

@rogiermulders @arfathyahiya you should still be able to import from Curl by using the new request dropdown From Curl option:

image

Thanks I didn't knew that and shifted to postman for time being.

But nothing beats the simple paste option working. I hope they add it back.

@filfreire filfreire changed the title Can not past CURL commands anymore Can not paste CURL commands anymore Aug 21, 2023
@filfreire filfreire changed the title Can not paste CURL commands anymore Cannot paste CURL commands anymore Aug 21, 2023
@Patamen
Copy link

Patamen commented Aug 21, 2023

If this is not a bug - please, return CURL paste feature

@filfreire filfreire changed the title Cannot paste CURL commands anymore Cannot paste CURL commands anymore, only via dropdown option Aug 21, 2023
@filfreire filfreire added B-bug Bug: general classification and removed B-bug Bug: general classification labels Aug 21, 2023
@filfreire filfreire changed the title Cannot paste CURL commands anymore, only via dropdown option Feature request: Re-add paste CURL on URL bar Aug 21, 2023
@filfreire filfreire added C-improvement Category: Improvement / Enhancement and removed B-bug Bug: general classification labels Aug 21, 2023
@filfreire
Copy link
Member

changing this to feature request

the feature was removed due to #6290 and fix #6295

@diasgab
Copy link

diasgab commented Aug 22, 2023

After the last update the paste from curl is not working (not even using the option from the menu); the sorting of endpoints changed on itself; the search filter bar doesn't work as expected :( .The previous version was working perfectly but there were many bugs introduced in the new one.

@PeterWCox
Copy link

PeterWCox commented Aug 22, 2023

I downgraded to Insomnia 2023.4.0 which solved the issue of CURL not importing.

https://github.com/Kong/insomnia/releases/tag/core%402023.4.0

Love Insomnia, and quite disappointed at the removal of this excellent feature.

@cozzbp
Copy link

cozzbp commented Aug 24, 2023

This feature is literally the only reason I use Insomnia, anyone got a good alternative?

@sunspinx
Copy link

I agree, it's kinda frustrating now. I'm switching to Postman temporarily or downgrading the version because it simply ruined your learnt behaviour. Take the CURL from network/bug and everything got prefilled. Now u must click on new request which makes you to do more steps and not intuitive at all.

@filfreire
Copy link
Member

Re-adding the feature in an upcoming patch release with this PR #6384

@arfathyahiya
Copy link

arfathyahiya commented Aug 25, 2023

@filfreire
Before release can you please also make sure about rename functionality?
Currently I've to use dropdown menu to rename the request name

Previously it was as simple as double clicking

Thank you for your hard work :)

EDIT
image

The GET and POST requests in color was good and easy to identify

@sunspinx
Copy link

@filfreire Before release can you please also make sure about rename functionality? Currently I've to use dropdown menu to rename the request name

Previously it was as simple as double clicking

Thank you for your hard work :)

EDIT image

The GET and POST requests in color was good and easy to identify

I fully agree with this just as my colleagues at work. None of them liked removing the colors, renaming and the curl into url bar not working. Those last changes were kinda bad and I'm curious what was the reason of removing it.

@rogiermulders
Copy link
Author

Hi,
To start with: Thank you for re-adding the past as curl option.

What I find annoying now is that it creates 'New Request' every time I past a Curl call.
Before that did not happen.

Also I can not remove Requests as bulk (or I do not know how) so I end up with a bunch of requests that I have to remove one by one.

PS Don't know if this is a feature request or I can write it here.

@arfathyahiya
Copy link

Hi, To start with: Thank you for re-adding the past as curl option.

What I find annoying now is that it creates 'New Request' every time I past a Curl call. Before that did not happen.

Also I can not remove Requests as bulk (or I do not know how) so I end up with a bunch of requests that I have to remove one by one.

PS Don't know if this is a feature request or I can write it here.

Please consider the above issue, also pressing DELETE key doesn't delete the request now, have to go through a few clicks to delete it.

Thanks for the tool :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-improvement Category: Improvement / Enhancement S-verified Status: Verified by maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants