question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sentry responded with an error: HTTP 413: Request Entity Too Large

See original GitHub issue

I have an exception being raised in a POST request handler in Tornado. When that exception is sent to Sentry via self.captureException(True), I am seeing:

ERROR:sentry.errors:Sentry responded with an error: HTTP 413: Request Entity Too Large (url: https://sentry.io/api/148507/store/)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/raven/contrib/tornado/__init__.py", line 70, in _handle_result
    future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 237, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
HTTPError: HTTP 413: Request Entity Too Large

In the POST body is a large file. I tried to exclude the POST body data by adding the 'raven.processors.RemovePostDataProcessor', but I am still getting the 413 response.

app.sentry_client = AsyncSentryClient(_sentry_dsn, 
	processors=(
		'raven.processors.SanitizePasswordsProcessor',
		'raven.processors.RemovePostDataProcessor'
	)
)

I am using raven==6.0.0.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sergei-maertenscommented, Sep 4, 2017

I’ve also just run into this, looks like breadcrumbs are causing 413s. Sentry itself is self-hosted, and we’re using Django integration.

However, it looks like there’s no setting to disable breadcrumbs in a Django context, or am I looking at the wrong place?

0reactions
ashwoodscommented, Feb 1, 2018

Closed as duplicate #604

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP Error 413: Request Entity Too Large - SDKs - #sentry
We are using python + django + celery, raven version 6.1.0. This particular error happened inside a celery task. Having a truncated error...
Read more >
ku on Twitter: "Sentry responded with an error: HTTP 413 ...
I have an exception being raised in a POST request handler in Tornado. When that exception is sent to Sentry via self.
Read more >
How to Solve the "413 Request Entity Too Large" Error - Kinsta
In a nutshell, the “413 Request Entity Too Large” error is a size issue. It happens when a client makes a request that's...
Read more >
413 Payload Too Large - HTTP - MDN Web Docs
The HTTP 413 Payload Too Large response status code indicates that the request entity is larger than limits defined by server; ...
Read more >
What Is a 413 Request Entity Too Large Error & How to Fix It
A 413 HTTP error code occurs when the size of a client's request exceeds the server's file size limit. This typically happens when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found