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.

Feeding via API returns 400

See original GitHub issue

Hello,

I’m attempting to add a feeding via the API (though Bitfocus Companion). I got everything working for a diaper change, so I know the basic connection is correct. I am unable to get the feeding to work though. Does anyone see my error?

URL: https://url.tld/api/feedings/

JSON: { "child":"1", "method": "$(internal:custom_feedMethod)", "type": "$(internal:custom_feedType)", "amount": "$(internal:custom_feedQty)" }

Header: {"authorization": "Token abc123"}

Returns:
172.17.0.4 - - [16/Aug/2022:12:55:46 +0000] "POST /api/feedings/ HTTP/1.1" 400 71 "-" "-"

Thanks

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:22

github_iconTop GitHub Comments

1reaction
dillwishlistcommented, Aug 24, 2022

Great project, it’s helping my wife and I a ton. We appreciate all your hard work a ton! Thanks!

1reaction
cdubzcommented, Aug 24, 2022

Ah yeah that’s true. A relatively recent change. I think the API is probably behind on a couple of different defaults that have changed over time 😬

Read more comments on GitHub >

github_iconTop Results From Across the Web

400 BAD request HTTP error code meaning? - Stack Overflow
A 400 means that the request was malformed. In other words, the data stream sent by the client to the server didn't follow...
Read more >
Solved: Rest API returns error 400 - ServiceNow Community
We face a problem on restAPI. Suddenly the request from application XYZ to ServiceNow API in lower environment return error400 bad request. But...
Read more >
400 Bad Request When creating company via API
Solved: Hi all, I'm trying to add a company via the API to my developer HUB (5217770). ... StatusCode: 400, ReasonPhrase: 'Bad Request',...
Read more >
Keep getting a 400 Bad Request when trying to create a Site ...
I'm quite new to Sharepoint stuff, and currently am trying to interact with the REST API. I have been able to get all...
Read more >
API 400 error when using BETWEEN_TIMES parameter o...
Solved: Hey guys, Recently I found an issue when using the AppDynamics API to retrieve metrics or events on a LITE account.
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