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

S3 Buckets Usage #70

Open
abdulrahmanmajid opened this issue Nov 22, 2024 · 1 comment
Open

S3 Buckets Usage #70

abdulrahmanmajid opened this issue Nov 22, 2024 · 1 comment

Comments

@abdulrahmanmajid
Copy link

Subject: Assistance with S3 Integration in Our App

Hi,

I’ve been trying to integrate S3 into Bolna. Here’s what I’ve done so far:

Filled in the required environment variables in the env file.
Updated the API configuration by setting Local=False.
However, I’m encountering the following error:

bolna-app-1 | 2024-11-22 13:09:39.978 INFO {credentials} [load] Found credentials in environment variables.
bolna-app-1 | 2024-11-22 13:09:40.249 ERROR {utils} [store_file] Exception occurred while s3 put object: expected string or bytes-like object
bolna-app-1 | 2024-11-22 13:09:40.249 WARNING {runners} [run] Executing <Task pending name='Task-44' coro=<store_file() running at /app/bolna/helpers/utils.py:156> cb=[gather.._done_callback() at /usr/local/lib/python3.10/asyncio/tasks.py:720] created at /usr/local/lib/python3.10/asyncio/tasks.py:636> took 0.340 seconds
bolna-app-1 | INFO: 172.18.0.1:40094 - "POST /agent HTTP/1.1" 200 OK
Additionally, nothing is being stored in S3.

I’d appreciate guidance on the following:

How to properly create the S3 buckets.
Whether the folders need to be created manually or if they’re auto-generated.
The recommended structure for the buckets and folders.

Thank you in advance for your help!

@prateeksachan
Copy link
Member

Seems like some issue with the object

bolna-app-1 | 2024-11-22 13:09:40.249 ERROR {utils} [store_file] Exception occurred while s3 put object: expected string or bytes-like object

Can you please cross check what object you're trying to upload?

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

2 participants