Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error response 400 in Raspberry Pi. Chat_id not included in request #116

Open
gvJaime opened this issue Mar 6, 2021 · 4 comments
Open

Comments

@gvJaime
Copy link

gvJaime commented Mar 6, 2021

when compiled and run in a Raspi 2, (armhf, Swift5.1). The requests are generated without the chat_id, for some reason.

Could be rogue behaviour or HTTPUtils.formUrlencode, or curlPerformRequest.

@gvJaime
Copy link
Author

gvJaime commented Mar 6, 2021

for some reason I recompiled and the architecture switched to armv6-unknown-linux-gnueabihf.

Apparently, the problem stems from the fact that the parameters: dictionary fails to include chat_id.

maybe chat_id is not being passed as a Decodable compliant class?

@gvJaime
Copy link
Author

gvJaime commented Mar 6, 2021

chat_id is an Int64, which is encoded using JSONEncoder() in HTTPUtils.

It seems to fail when it's compiled in the Raspi 2

@nerzh

This comment has been minimized.

@zmeyc
Copy link
Member

zmeyc commented Aug 13, 2021

@gvJaime Could you try the latest version? It includes some fixes for formUrlencode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants