Generate error request when request body is an array.
See original GitHub issueBecause 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:
- Created a year ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Array as a parameter is something that would be pretty common, thanks @XMLHexagram for the fix…
@flip-it this fix is available in the latest release 1.1.3. Also added a utility method to deal with arrays here