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.

POST method not sending body argument to API

See original GitHub issue

https://github.com/Pinesy/radical/commit/d014e4193b6d6a296a2fd593176340c67a9d11c7 is the commit where I implemented the “create and delete” product methods - the delete works fine (being passed up just an id), but for the create, i’m passing along an argument object that contains (what I believe to be) correct data. The onSuccess and onError methods work correctly.

This is the action: image

Would appreciate any guidance =)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adrienharnaycommented, Mar 19, 2018

Problem fixed! For some reason, with our setup we didn’t need to JSON.stringify the request body, but it is needed in other cases (including yours). You can update to 2.3.4 😃

0reactions
adrienharnaycommented, Mar 19, 2018

No problem, thanks a lot for reporting the issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

POSTMAN not sending anything in the body in POST ...
The weird part is, that the data I am sending, are nowhere to be found in the request object at all :( EDIT:...
Read more >
Add a Request Body to a POST Request | API Connector
If your POST request isn't working, a likely cause is a mismatched content type. Try adding in a content type into the header...
Read more >
Passing parameters in the body of a HTTP POST request
The parameters are being sent as Text in the body of the request which is set as Multipart Form Data. The request completes...
Read more >
What is HTTP POST Request Method?
POST is an HTTP method designed to send data to the server from an HTTP client. The HTTP POST method requests the web...
Read more >
POST Not working for REST API - Method not found Error
To send a request body instead of form variables, leave pFormVarNames empty and pass the body text as the pData argument. So, can...
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