[GH-ISSUE #1159] Import cURL always fails #400

Closed
opened 2026-03-16 15:07:39 +03:00 by kerem · 9 comments
Owner

Originally created by @arjun-1 on GitHub (Sep 11, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1159

Originally assigned to: @liyasthomas on GitHub.

Description

Import cURL always fails (even for cURL produced from 'Generate code')

To Reproduce

Steps to reproduce the behavior:

  1. Go to hoppscotch.io
  2. Click on 'import cURL'
  3. Paste
curl -X GET \
  'https://hoppscotch.io/'
  1. Click 'Import'
  2. See error 'cURL is not formatted properly

Expected behavior

Import of valid cURL should succeed

Desktop

  • OS: Ubuntu 18.04.5 LTS
  • Browser: Chrome
  • Version: 85.0.4183.102
Originally created by @arjun-1 on GitHub (Sep 11, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1159 Originally assigned to: @liyasthomas on GitHub. ## Description Import cURL always fails (even for cURL produced from 'Generate code') ## To Reproduce Steps to reproduce the behavior: 1. Go to hoppscotch.io 2. Click on 'import cURL' 3. Paste ``` curl -X GET \ 'https://hoppscotch.io/' ``` 4. Click 'Import' 4. See error 'cURL is not formatted properly ## Expected behavior Import of valid cURL should succeed ## Desktop - OS: Ubuntu 18.04.5 LTS - Browser: Chrome - Version: 85.0.4183.102
kerem 2026-03-16 15:07:39 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@liyasthomas commented on GitHub (Sep 11, 2020):

Thanks for reporting the issue. We're working on a fix.

<!-- gh-comment-id:690965674 --> @liyasthomas commented on GitHub (Sep 11, 2020): Thanks for reporting the issue. We're working on a fix.
Author
Owner

@liyasthomas commented on GitHub (Sep 11, 2020):

Issue was introduced in the latest version of yargs-parser dependency. I've pushed a fix, it would be great if you could check and verify: https://hoppscotch.io

@arjun-1

<!-- gh-comment-id:690988001 --> @liyasthomas commented on GitHub (Sep 11, 2020): Issue was introduced in the latest version of `yargs-parser` dependency. I've pushed a fix, it would be great if you could check and verify: https://hoppscotch.io @arjun-1
Author
Owner

@arjun-1 commented on GitHub (Sep 11, 2020):

The issue was fixed, though there seems to be trouble with other cURL commands. For example:

curl -X GET 'https://hoppscotch.io/'
<!-- gh-comment-id:691101442 --> @arjun-1 commented on GitHub (Sep 11, 2020): The issue was fixed, though there seems to be trouble with other cURL commands. For example: ``` curl -X GET 'https://hoppscotch.io/' ```
Author
Owner

@savy-91 commented on GitHub (Dec 30, 2020):

I am experiencing this with the current v1.9.9 version online, both on latest Chrome and Firefox browser. I am unable to import any curl command while it does not show any error.

<!-- gh-comment-id:752563059 --> @savy-91 commented on GitHub (Dec 30, 2020): I am experiencing this with the current v1.9.9 version online, both on latest Chrome and Firefox browser. I am unable to import any curl command while it does not show any error.
Author
Owner

@liyasthomas commented on GitHub (Dec 30, 2020):

Thanks for reporting the issue. We're checking what's causing this behaviour.

<!-- gh-comment-id:752565584 --> @liyasthomas commented on GitHub (Dec 30, 2020): Thanks for reporting the issue. We're checking what's causing this behaviour.
Author
Owner

@savy-91 commented on GitHub (Dec 30, 2020):

I just noticed that I am getting this error in console

image

<!-- gh-comment-id:752567225 --> @savy-91 commented on GitHub (Dec 30, 2020): I just noticed that I am getting this error in console ![image](https://user-images.githubusercontent.com/6215122/103352864-b2853400-4aa7-11eb-99e6-9169c950e80e.png)
Author
Owner

@liyasthomas commented on GitHub (Dec 30, 2020):

Looks like this is caused by a recent refactor. I'm pushing a fix now. Fix will be live in about 5 mins.

<!-- gh-comment-id:752573868 --> @liyasthomas commented on GitHub (Dec 30, 2020): Looks like this is caused by a recent refactor. I'm pushing a fix now. Fix will be live in about 5 mins.
Author
Owner

@liyasthomas commented on GitHub (Dec 30, 2020):

Issue has been fixed. Force refresh to take effect.

<!-- gh-comment-id:752586610 --> @liyasthomas commented on GitHub (Dec 30, 2020): Issue has been fixed. Force refresh to take effect.
Author
Owner

@bermudi commented on GitHub (Jun 7, 2023):

I'm not able to import cURL command in https://hoppscotch.io/

some kind of regression?

<!-- gh-comment-id:1579771037 --> @bermudi commented on GitHub (Jun 7, 2023): I'm not able to import cURL command in https://hoppscotch.io/ some kind of regression?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#400
No description provided.