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

Unknown errors when creating invoices #551

Open
IiroP opened this issue Nov 3, 2024 · 1 comment
Open

Unknown errors when creating invoices #551

IiroP opened this issue Nov 3, 2024 · 1 comment

Comments

@IiroP
Copy link
Contributor

IiroP commented Nov 3, 2024

Laskugeneraattori backend has quite strict rate limiting (triggered by 5+ requests in short timeframe). When sending requests that have attachments that are bigger than ~500 kB (exact amount unknown) AND rate limit has been reached, the backend terminates request before all content has been send. This can be seen when using curl:

* HTTP error before end of send, stop sending
* abort upload after having sent 524085 bytes

If this situation is triggered with Laskugeneraattori frontend, it leads to "Jotain meni pieleen" error page, with server log showing:
Image

@IiroP IiroP added this to tikweb 3.0 Oct 31, 2024
@IiroP IiroP converted this from a draft issue Nov 3, 2024
@IiroP IiroP assigned IiroP and unassigned IiroP Nov 3, 2024
@joonatanaatos
Copy link
Contributor

Hmm, this seems to be a problem with the invoice generator. Perhaps we could try increasing the rate limit so that it accepts requests up to, for example, 20 MB? The frontend should also prevent the request from being made if the size of the attachments exceed the limit.

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

No branches or pull requests

2 participants