Forum in maintenance, we will back soon 🙂
DigitalOcean Hosting Failure
I am getting the following service failure message when hosting the Google API on DigitalOcean:
[2023-10-29 01:56:18] Traceback (most recent call last):
[2023-10-29 01:56:18] File "/workspace/app.py", line 2, in <module>
[2023-10-29 01:56:18] from flask import Flask, request, jsonify
[2023-10-29 01:56:18] File "/workspace/.heroku/python/lib/python3.11/site-packages/flask/__init__.py", line 7, in <module>
[2023-10-29 01:56:18] from .app import Flask as Flask
[2023-10-29 01:56:18] File "/workspace/.heroku/python/lib/python3.11/site-packages/flask/app.py", line 28, in <module>
[2023-10-29 01:56:18] from . import cli
[2023-10-29 01:56:18] File "/workspace/.heroku/python/lib/python3.11/site-packages/flask/cli.py", line 18, in <module>
[2023-10-29 01:56:18] from .helpers import get_debug_flag
[2023-10-29 01:56:18] File "/workspace/.heroku/python/lib/python3.11/site-packages/flask/helpers.py", line 16, in <module>
[2023-10-29 01:56:18] from werkzeug.urls import url_quote
[2023-10-29 01:56:18] ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/workspace/.heroku/python/lib/python3.11/site-packages/werkzeug/urls.py)
[]
How to fix the problem?
Thanks in advance
Can you share your requirements file and did you add it?
@hung-ng please share the public link to your Github code.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack