-
Notifications
You must be signed in to change notification settings - Fork 643
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
Issues Encountered and Resolutions Discovered #93
Comments
I got this error on google cloud:
But the bucket my-bucket exist. There is any config I pass out? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wanted to share the following issues I ran into while deploying this app, along with some resolutions discovered along the way:
Company names not appearing in the search bar on the landing page
BACKEND_CORS_ORIGINS
must include the following:https://
and without a trailing slash (ex:https://xxx.vercel.app
).https://xxx.onrender.com/api/document
), without a trailing slash.'Failed to load PDF file' on the conversation page
Upon inspecting the webpage using my browser's dev tools, I noticed there are two different causes for this issue:
CDN_BASE_URL
backend environment variable must begin withhttps://
. This is because every deployment on Vercel is served over an HTTPS connection, so any requests for content served over HTTP will be blocked.seed_db.py
script sets the URL of the documents to be fetched by the frontend web page. TheCDN_BASE_URL
environment variable must be set correctly before running this script. Otherwise, the web page will try to load PDF documents from incorrect URLs.http://
, resulting in the mixed content error.S3_ASSET_BUCKET_NAME
backend environment variable.BACKEND_CORS_ORIGINS
backend environment variable. Rather, it is a setting on the S3 bucket itself.CDN_BASE_URL
backend environment variable to the CloudFront distribution domain name, prefixed withhttps://
."GET"
methods. The address of the frontend webpage deployed on Vercel must be listed as an allowed origin (ex:"AllowedOrigins": ["https://xxx.vercel.app"]
).Permission denied error while running the
seed_db.py
script with remote S3 buckets (i.e., not localstack)seed_db.py
script runs as a result of any of the following commands from the backend directory:S3_BUCKET_NAME
."Action":"s3:*"
) against the bucket and the objects within it ("Resource": ["<Bucket ARN>", "<Bucket ARN>/*"]
).The Web Service and Cron Job deployed on Render must be, at minimum, the standard instance type
Limitations
One limitation I noticed is that it doesn't seem possible to host the application locally (from Codespace or your desktop) while also using remote S3 buckets to store the StorageContext or app assets.
RENDER
backend environment variable is used to indicate whether the backend is hosted on Render.com. It can only take on the values of True or False.backend/app/core/config.py
), which is used to set the S3 endpoint URL."http://localhost:4566"
. This is the localstack endpoint.The text was updated successfully, but these errors were encountered: