This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Bad request 400 - HTTP API
#1
Hi, we are using http api / base auth in our web application to communicate with Logic Machine.  Everything worked just fine, but with latest LM fw update, we cannot log in from the web app to the LM anymore. Basically the CORS setting works ok, we have set the domain of the web app in the Services / Http server screen. The OPTIONS request from the web app gets the response 200 -> OK, but the following GET request just dies, LM returning an 400 - Bad request error. 
Nothing is logged anywhere, nor in the nginx error log (debug level). 
We traced that the request hits the lp-handler.lua, but what happens there is unknown (it's either bytecode, or otherwise not readable).
Before the introduction of the CORS setting in the system menu of the LM, the web app was working fine.
Our LM version:
HW: LM5 Lite (i.MX6)
SW: 20211215

Does anybody have similar experience? What would you suggest as next step in debugging? Is it possible to obtain the lp-handler.lua source?

Thank you for any help or suggestion.
Peter
Reply


Messages In This Thread
Bad request 400 - HTTP API - by Peter B. - 15.09.2022, 16:41
RE: Bad request 400 - HTTP API - by admin - 16.09.2022, 07:20
RE: Bad request 400 - HTTP API - by Peter B. - 16.09.2022, 09:51
RE: Bad request 400 - HTTP API - by Peter B. - 19.09.2022, 08:28
RE: Bad request 400 - HTTP API - by admin - 21.09.2022, 13:17
RE: Bad request 400 - HTTP API - by Peter B. - 21.09.2022, 21:24
RE: Bad request 400 - HTTP API - by Zen - 06.10.2022, 07:37
RE: Bad request 400 - HTTP API - by admin - 06.10.2022, 11:29
RE: Bad request 400 - HTTP API - by Zen - 06.10.2022, 16:03
RE: Bad request 400 - HTTP API - by Daniel - 07.10.2022, 07:25
RE: Bad request 400 - HTTP API - by Zen - 07.10.2022, 18:07
RE: Bad request 400 - HTTP API - by Zen - 23.11.2022, 14:01
RE: Bad request 400 - HTTP API - by Daniel - 23.11.2022, 14:08

Forum Jump: