Matheus Cruz
06/21/2021, 8:28 PMState Message:
Failed to load and execute Flow's environment: UnknownObjectException(404, {'message': 'Not Found', 'documentation_url': '<https://docs.github.com/rest/reference/repos#get-repository-content>'} , {'server': '<http://GitHub.com|GitHub.com>', 'date': 'Mon, 21 Jun 2021 20:19:24 GMT', 'content-type': 'application/json;charset=utf-8', 'transfer -encoding': 'chunked', 'x-oauth-scopes': 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications , repo, user, workflow, write:discussion, write:packages', 'x-accepted-oauth-scopes': '', 'x-github-media-type': 'github.v3; format=json', ' x-ratelimit-limit': '5000', 'x-ratelimit-remaining': '4988', 'x-ratelimit-reset': '1624309007', 'x-ratelimit-used': '12', 'x- ratelimit-resource': 'core', 'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X- RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X -Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset', 'access-control-allow-origin': '*', 'strict-transport-security': 'max -age=31536000; includeSubdomains; preload', 'x-frame-options': 'deny', 'x-content-type-options': 'nosniff', 'x-xss-protection': '0',.....
I've tried a lot of things and nothing seems to work, do you know what it can be?Kevin Kho
06/21/2021, 8:31 PMMatheus Cruz
06/21/2021, 8:32 PMKevin Kho
06/21/2021, 8:34 PMstorage = Github(….)
storage.get_flow("flow_name")
Matheus Cruz
06/21/2021, 8:49 PMprefect register -p flows/my_flow.py --project MyProject
Kevin Kho
06/21/2021, 8:52 PMMatheus Cruz
06/21/2021, 8:59 PMKevin Kho
06/21/2021, 9:03 PMwith Flow("flow_name") as flow():
your_task()
storage.add_flow(flow)
storage.build()
storage.get_flow("flow_name")
Matheus Cruz
06/21/2021, 10:15 PMCollecting flows...
[2021-06-21 18:57:11-0300] INFO - prefect.GitHub | Downloading flow from GitHub storage - repo: 'MatheusTulio/GitHub_tests', path: '/ecs_flow_test.py'
[2021-06-21 18:57:12-0300] INFO - prefect.GitHub | Flow successfully downloaded. Using commit: 1d657fd3b0f651bc9264dde5abdf181e9819bd7b
and then
File "<string>", line 37, in <module>
File "/opt/anaconda3/lib/python3.8/site-packages/prefect/storage/github.py", line 128, in get_flow
return extract_flow_from_file(
File "/opt/anaconda3/lib/python3.8/site-packages/prefect/utilities/storage.py", line 86, in extract_flow_from_file
exec(contents, exec_vals)
RecursionError: maximum recursion depth exceeded during compilation
Kevin Kho
06/21/2021, 11:13 PMMatheus Cruz
06/22/2021, 11:52 AMKevin Kho
06/22/2021, 2:26 PMMatheus Cruz
06/22/2021, 2:37 PMKevin Kho
06/22/2021, 2:38 PMMatheus Cruz
06/22/2021, 2:38 PMKevin Kho
06/22/2021, 2:40 PMMatheus Cruz
06/22/2021, 3:05 PMKevin Kho
06/22/2021, 3:06 PM