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

413 Request Entity Too Large (Tracking API) #13775

Closed
savsgio opened this issue Nov 28, 2018 · 3 comments
Closed

413 Request Entity Too Large (Tracking API) #13775

savsgio opened this issue Nov 28, 2018 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@savsgio
Copy link

savsgio commented Nov 28, 2018

I using the http api to try to registrer tracks with a bulk insert. Sometimes i got this error

<html><head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.14.0 (Ubuntu)</center>
</body></html>

Example of body requests:

{
   "requests": [
      "?idsite=1&url=http://example.org&action_name=Test bulk log Pageview&rec=1",
      "?idsite=1&url=http://example.net/test.htm&action_name=Another bulk page view&rec=1"
   ],
   "token_auth": "33dc3f2536d3025974cccb4b4d2d98f4"
}

The request field has a maximun lenght of 70 items or less per POST request. but i don't know why matomo returns these error.
I follow the Tracking HTTP API guide

Matomo version: 3.7.0

@savsgio savsgio changed the title 413 Request Entity Too Large 413 Request Entity Too Large (Tracking API) Nov 28, 2018
@tsteur
Copy link
Member

tsteur commented Nov 28, 2018

It looks like a server configuration issue. I recommend you have a look in our forum or post a question there if you can't find more info. A web search might help as well. Unfortunately we cannot provide support for server configurations here.

@tsteur tsteur closed this as completed Nov 28, 2018
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Nov 28, 2018
@fdellwing
Copy link
Contributor

@savsgio Short anwser: Increase client_max_body_size in your nginx.conf.

@savsgio
Copy link
Author

savsgio commented Nov 29, 2018

Finally, I decided to do the requests with batches of 100 items in the requests field array.

Thanks @tsteur and @fdellwing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants