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

Request to JustGiving times out when creating a fundraising page #44

Open
mwillmott opened this issue Apr 16, 2019 · 0 comments
Open

Request to JustGiving times out when creating a fundraising page #44

mwillmott opened this issue Apr 16, 2019 · 0 comments

Comments

@mwillmott
Copy link
Contributor

It looks like the request to JustGiving to create a fundraising page can sometimes timeout. It looks like the fundraising page does get created as when users try again we get a 409 response from JustGiving saying the page already exists.

This timeout means that we don't create the fundraising record on our side though. If we get a timeout exception we should try again and if we get a 409 we should create the fundraising record on our side.

https://sentry.io/organizations/techbikers/issues/987620506/?project=1264786&referrer=github_plugin

TimeoutError: (<requests.packages.urllib3.contrib.appengine.AppEngineManager object at 0x2aa7ba3e6a90>, DeadlineExceededError('Deadline exceeded while waiting for HTTP response from URL: https://api.justgiving.com/v1/fundraising/pages',))
(15 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 443, in handle_exception
    self.raise_uncaught_exception(exc)
  File "rest_framework/views.py", line 480, in dispatch
    response = handler(request, *args, **kwargs)
  File "rest_framework/generics.py", line 191, in post
    return self.create(request, *args, **kwargs)
  File "rest_framework/mixins.py", line 21, in create
    self.perform_create(serializer)
  File "server/rides/views.py", line 231, in perform_create
    json=payload)

TimeoutError: (<requests.packages.urllib3.contrib.appengine.AppEngineManager object at 0x2aa7ba3e6a90>, DeadlineExceededError('Deadline exceeded while waiting for HTTP response from URL: https://api.justgiving.com/v1/fundraising/pages',))
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