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

Invalid header in cURL command results in an Internal Server Error #3932

Closed
sentry-io bot opened this issue Apr 9, 2021 · 1 comment · Fixed by #3931
Closed

Invalid header in cURL command results in an Internal Server Error #3932

sentry-io bot opened this issue Apr 9, 2021 · 1 comment · Fixed by #3931
Assignees
Labels
Backend This marks the issue or pull request to reference server code Bug Something isn't working Production

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 9, 2021

Trying to import a cURL command with an invalid header like the following causes an internal server error:

curl -H 'x-custom' http://httpbin.org/headers

Sentry Issue: APPSMITH-P0

ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
    at com.appsmith.server.services.CurlImporterService.parse(CurlImporterService.java:296)
    at com.appsmith.server.services.CurlImporterService.curlToAction(CurlImporterService.java:107)
    at com.appsmith.server.services.CurlImporterService.curlToAction(CurlImporterService.java:86)
    at com.appsmith.server.services.CurlImporterService.importAction(CurlImporterService.java:60)
    at com.appsmith.server.controllers.RestApiImportController.create(RestApiImportController.java:62)
...
(213 additional frame(s) were not displayed)
@github-actions github-actions bot added the potential-duplicate This label marks issues that are potential duplicates of already open issues label Apr 9, 2021
@github-actions
Copy link

github-actions bot commented Apr 9, 2021

We have found issues that are potential duplicates:

  • [Fix internal server error on invalid header in curl command #3931] Fix internal server error on invalid header in curl command (89.29%)
    If any of the issues listed above are a duplicate, please consider closing this issue & upvoting the original one.
    Alternatively, if neither of the listed issues addresses your feature/bug, keep this issue open.

@sharat87 sharat87 linked a pull request Apr 9, 2021 that will close this issue
@sharat87 sharat87 added Bug Something isn't working and removed potential-duplicate This label marks issues that are potential duplicates of already open issues labels Apr 9, 2021
@nidhi-nair nidhi-nair added Backend This marks the issue or pull request to reference server code Production labels Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend This marks the issue or pull request to reference server code Bug Something isn't working Production
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants