[Django] Requests from iOS time out when raven is enabled
See original GitHub issueI am having an issue with requests from iOS timing out when Raven is enabled. Any endpoints from my project will time out, but not endpoints that are included from third party apps. The issue disappears when excluding Raven from installed apps. This issue only occurs when sending a request from an iOS app. The same requests made using httpie
or Postman are successful.
To make things more complicated, the request only times out on the iOS side. As soon as it times out, Django (or rather runserver
) happily reports that the request was successful with a 200 status code.
I apologize for the lack of detailed information or a stack trace, but I have not been able to produce an actual error from the Django application. Please let me know if further information is needed or if you have ideas on things I should investigate further.
URL Structure
As mentioned above, requests for URLs from third-party apps succeed, but any requests to URLs from my project fail.
Base URL File
# project/project/urls.py
urlpatterns = [
url(r'^foo/', include('foo.urls'), # Third party application works fine
url(r'^my-app/', include('my_app.urls'), # Application defined in my project fails
]
App URL File
# project/my_app/urls.py
app_name = 'my-app'
urlpatterns = [
url(r'^bar/$', BarView.as_view(), name='bar-detail'),
]
Views
The views from the project are mostly based on DRF’s generic views (eg generics.ListCreateView
). I don’t believe the issue lies here, since some of the third-party apps used utilize the same generic views.
Dependency Versions
- Django 2.0.3
- Django Rest Framework 3.7.7
- Raven 6.6.0
Downgrading to 6.1.0 causes the requests to work, but constantly logs errors about URLConf
, which I believe is related to the Django 2 support that was 6.2.0 addresses.
Upstream Issue
For reference, the upstream issue I’m trying to fix is knowmetools/km-api#298
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
Thx. I’m not entirely sure why, but I can fix it. On Wed 28. Mar 2018 at 19:20, Brandogs notifications@github.com wrote:
@cdriehuys Hi Chathan. mind installing a version that doesn’t instrument drf to pinpoint the problem?