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

better handle API responses #97

Open
ChrisCarini opened this issue Aug 3, 2023 · 0 comments
Open

better handle API responses #97

ChrisCarini opened this issue Aug 3, 2023 · 0 comments

Comments

@ChrisCarini
Copy link
Owner

Trivia of the Day - 2023-08-03
Traceback (most recent call last):
❓ All program codes have to be compiled into an
  File "main.py", line 22, in <module>
executable file in order to be run. This file can
    main()
  File "main.py", line [15](https://github.com/ChrisCarini/trivia-box/actions/runs/5745713313/job/15574116676#step:5:16), in main
    update_gist(title=f'Trivia of the Day - {date.today().isoformat()}', content=formatted_output)
  File "/home/runner/work/trivia-box/trivia-box/trivia_box.py", line 103, in update_gist
    gist.edit(description=title, files=files)
  File "/opt/hostedtoolcache/Python/3.8.[17](https://github.com/ChrisCarini/trivia-box/actions/runs/5745713313/job/15574116676#step:5:18)/x64/lib/python3.8/site-packages/github/Gist.py", line 258, in edit
    headers, data = self._requester.requestJsonAndCheck(
  File "/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/github/Requester.py", line 443, in requestJsonAndCheck
    *self.requestJson(
  File "/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/github/Requester.py", line 580, in requestJson
    return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode)
  File "/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/github/Requester.py", line 694, in __requestEncode
    int(responseHeaders[Consts.headerRateRemaining]),
ValueError: invalid literal for int() with base 10: '98.0'
then be executed on any machine.
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