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

get_metadata() fails with flask context outside of flask server #33

Open
AbdealiLoKo opened this issue May 8, 2019 · 0 comments
Open

Comments

@AbdealiLoKo
Copy link

I am trying to run my celery workers which connects to my FileSystem to save files.
When doing so, I am using the same filesystem management that my Flask applicaiton is using so that it is consistent for my async jobs (with celery) as well as my sync jobs (with wsgi flask).

When I do this, I get the following in get_metadata() when trying to find the "url".
I have no need for using URL here, but because the get_metadata() seems to always try to populate the URL it causes issues.

TaskException: RuntimeError: Application was not able to create a URL adapter for request independent URL generation. You might be able to fix this by setting the SERVER_NAME config variable.
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