question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API Request DrawIO Export returns 400 Bad request

See original GitHub issue

Describe the bug When trying to use API for export DrawIO diagram according to doc I get 400 Bad request error with the description: {“errors”:[{“start”:{“line”:1,“column”:1,“offset”:0},“error”:" should have required property ‘command’“,“path”:”"}]}

To Reproduce Steps to reproduce the behavior:

  1. Make request to API: curl --location --request POST 'https://<your-api-gateway-id>.execute-api.<deployment-region>.amazonaws.com/Prod/resources' \ --header 'Authorization: Bearer <your-token> \ --header 'Content-Type: text/plain' \ --data-raw '{"elements":{"nodes":[], "edges": []}}'

  2. Get response 400 Bad request error with the description: {“errors”:[{“start”:{“line”:1,“column”:1,“offset”:0},“error”:" should have required property ‘command’“,“path”:”"}]}

Expected behavior Receive a URL that when clicked will open up DrawIO in the browser and show my graph.

Browser (please complete the following information):

  • curl 7.55.1 (Windows) libcurl/7.55.1 WinSSL

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
toksvaethcommented, Nov 13, 2020

Looks like you had success, @traublmak. Good to know.

If you don’t mind I’m going to re-open this so we don’t forget to add the documentation fixes. 😃

1reaction
traublmakcommented, Nov 13, 2020

thank you @svozza, @ConnorKirk

Read more comments on GitHub >

github_iconTop Results From Across the Web

API Request DrawIO Export returns 400 Bad request · Issue #92
Describe the bug. When trying to use API for export DrawIO diagram according to doc I get 400 Bad request error with the...
Read more >
Getting 400 bad request in Axios but in Postman status 200
I was able to make the API call from postman but from my java code I was getting a 400. Turns out, this...
Read more >
How to Fix a 400 Bad Request Error (Causes and Fixes) - Kinsta
The 400 Bad Request error indicates that the server cannot or process the request due to a client error. Read about the common...
Read more >
REST API - Zenodo
400 Bad Request : Deposition is not being edited. See HTTP status codes (400 and 500 series errors) and error responses. New version....
Read more >
apex - Issue getting public key, getting 400 Bad Request using ...
Signing the request using JWS does not work for some reason. I need to build the payload by myself without using jwt.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found