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

Exception raised parsing response from create_activity #235

Open
pedropombeiro opened this issue May 21, 2022 · 1 comment
Open

Exception raised parsing response from create_activity #235

pedropombeiro opened this issue May 21, 2022 · 1 comment
Labels
pending-response A label to track issues where we are waiting for a user response

Comments

@pedropombeiro
Copy link

It seems that there is a problem decoding the response from create_activity:

Traceback (most recent call last):
  File "/Users/pedropombeiro/src/github.com/huserben/walkingpad/restserver.py", line 610, in app_factory
    stravaClient.create_activity('Walking Pad', 'Walk', session_start_time, int((datetime.now() -
  File "/opt/homebrew/lib/python3.9/site-packages/stravalib/client.py", line 598, in create_activity
    raw_activity = self.protocol.post('/activities', **params)
  File "/opt/homebrew/lib/python3.9/site-packages/stravalib/protocol.py", line 304, in post
    return self._request(url, params=params, files=files, method='POST', check_for_errors=check_for_errors)
  File "/opt/homebrew/lib/python3.9/site-packages/stravalib/protocol.py", line 223, in _request
    resp = raw.json()
  File "/opt/homebrew/lib/python3.9/site-packages/requests/models.py", line 917, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: [Errno Expecting value] : 0
@lwasser lwasser added the pending-response A label to track issues where we are waiting for a user response label Feb 12, 2024
@lwasser
Copy link
Collaborator

lwasser commented Feb 12, 2024

hey there @pedropombeiro 👋

i'm working through some of our older issues. We have implemented a significant API update and as such i'm curious if this issue is still a problem for you.

if it is, please provide us with a bit more information in the form of a code sample that we can run locally.
if i don't hear from you in the next week i will go ahead and close this.

You can always reopen in the case that you miss my message and are still struggling with this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-response A label to track issues where we are waiting for a user response
Projects
None yet
Development

No branches or pull requests

2 participants