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

Maximum length of AppVersion and OSVersion #85

Open
jakub-lat opened this issue May 7, 2024 · 0 comments
Open

Maximum length of AppVersion and OSVersion #85

jakub-lat opened this issue May 7, 2024 · 0 comments

Comments

@jakub-lat
Copy link

jakub-lat commented May 7, 2024

Hi,

While integrating Aptabase into my Unity game, I encountered this error multiple times:

Failed to perform web request due to 400 and response body HTTP/1.1 400 Bad Request

After investigating the issue with mitmproxy, I found out that AppVersion has a maximum length of 20 and OSVersion - 30.

DiscordCanary_HFos6LfG7B
image

The AppVersion length restriction is not so bad, because I can always trim it on the client-side. But as for OSVersion on Linux, the Aptabase Unity SDK automatically sets it to something like Linux 6.1 Debian GNU/Linux 12 64bit, which is a bit too long - and there is no way to change it, except maybe forking the SDK and trimming it manually.

Could you increase max lengths of those to for example 50, or add a setting to adjust that per-project? It's really annoying. I can submit a PR if it's not an issue to increase those restrictions.

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

1 participant