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.

Generate error request when request body is an array.

See original GitHub issue

Because const payload = { ...request.payload } in fetcher.ts. If I try to use something like [{count:1},{count:2}] the really request will become

{
 '0': { count: 1 },
 '1': { count: 1 }
} 

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ajaishankarcommented, Apr 3, 2022

Array as a parameter is something that would be pretty common, thanks @XMLHexagram for the fix…

0reactions
ajaishankarcommented, May 14, 2022

@flip-it this fix is available in the latest release 1.1.3. Also added a utility method to deal with arrays here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Better approach of handling failure when accepting array in ...
I have to write a REST Service method that accepts a list of persons as parameter. Here, what would be the best approach...
Read more >
Make a post request to an API error (Passing in the "body ...
I want to make a post request to an API but its appearing an error: Copy Code Passing in the "body" request option...
Read more >
Can't use an array of entities as request body #5601 - GitHub
I am trying to use an array of entity as a request object but it does not ... _requestBody: Customer[]): Promise { throw...
Read more >
How To Create A JSON Request With More Than One Array ...
Hi,I am using the postURL functionality. JSON Request body contains more than one array element like shown below,Original JSON Request Body Format To...
Read more >
Error Codes - Marketo Developers
Each object in the “errors” array has two members, “code,” which is a quoted integer from 601 to 799 and a “message” giving...
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