Skip to content

Commit

Permalink
Debug integ test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rushabhvaria committed Apr 3, 2023
1 parent d2cbb1d commit 10232de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/integrationtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Run all integration tests
env:
PINTEREST_DEBUG: true
PINTEREST_REFRESH_ACCESS_TOKEN: ${{ secrets.CI_REFRESH_ACCESS_TOKEN }}
PINTEREST_APP_SECRET: ${{ secrets.CI_APP_SECRET }}
PINTEREST_APP_ID: ${{ secrets.CI_APP_ID }}
Expand Down
2 changes: 2 additions & 0 deletions pinterest/utils/refresh_access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def get_new_access_token(
f"Response from server: {response.body}"
)
if response.status != 200:
print(response.data)
print(response.getheaders())
raise SdkException(http_resp=response)

data = json.loads(response.data)
Expand Down

0 comments on commit 10232de

Please sign in to comment.