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

Failed to generate images #30

Closed
pexeixv opened this issue Mar 15, 2021 · 4 comments
Closed

Failed to generate images #30

pexeixv opened this issue Mar 15, 2021 · 4 comments

Comments

@pexeixv
Copy link

pexeixv commented Mar 15, 2021

I followed the installation guide in README.md. I created a secret with the access token, even then it the log says access token is missing.

  python3 --version
  python3 generate_images.py
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.8.8/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.8/x64/lib
    ACCESS_TOKEN: 
    GITHUB_TOKEN: ***
    EXCLUDED: 
    EXCLUDED_LANGS: 
    EXCLUDE_FORKED_REPOS: false
Python 3.8.8
Traceback (most recent call last):
  File "generate_images.py", line 119, in <module>
    asyncio.run(main())
  File "/opt/hostedtoolcache/Python/3.8.8/x64/lib/python3.8/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/opt/hostedtoolcache/Python/3.8.8/x64/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "generate_images.py", line 100, in main
    raise Exception("A personal access token is required to proceed!")
Exception: A personal access token is required to proceed!
Error: Process completed with exit code 1.
@jstrieb
Copy link
Owner

jstrieb commented Mar 16, 2021

Hi, thanks for taking the time to open this issue!

After reading your post, I'm not entirely sure what the problem could be. Have you double checked that you spelled the name of the secret correctly? The place to see the secrets is here.

If you provide some more info, we can get to the bottom of what is going wrong, and then I can document the issue for anyone else who might have the same problem.

@comav
Copy link

comav commented Mar 30, 2021

Hi!

I had the same issue, so I tried to re-run a workflow, and it worked.
As far as I understand, the script tries to generate images immediately after copying, but you need some time to set a Personal Access Token, so it can't find it.

Hopefully, this will help you

@jstrieb jstrieb pinned this issue Mar 30, 2021
@jstrieb
Copy link
Owner

jstrieb commented Apr 1, 2021

Thanks @pexeixv and @comav, both for bringing this to my attention, and for identifying the cause (and solution)! I will add this to the main documentation in case there are other users having the same problem who haven't reported it.

I'm assuming that the solution provided by @comav does indeed fix the original problem. If not, please feel free to reopen this issue.

@jstrieb jstrieb closed this as completed in 65dac68 Apr 1, 2021
@ArshiaRx
Copy link

Hi!

I had the same issue, so I tried to re-run a workflow, and it worked. As far as I understand, the script tries to generate images immediately after copying, but you need some time to set a Personal Access Token, so it can't find it.

Hopefully, this will help you

Hello,
Getting back to this how long should we expect to wait until it understands the token and gets updated!

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

4 participants