Maybe it's some access policy for the bucket where the image is, is this using the AWS minio?
Try open the url that is put in the variable in a incognito window, if open so there is no problem with access policy for the bucket, Or you can try send the file to openai storage also.
You are an expert, I feel like I'm trying to teach ¨a priest how to say mass¨, sorry for maybe saying something that you might already know.
No! 😂 You're absolutely right!
Man! How stupid I am? 😆
I can see the image cause I'm logged. 🤦♂️
The access policy already "public".
Do you know where else should I change it?
The minio / s3 url is already public. I can access it from the incognito window.
The problem is the typebot URL for the image.
Sorry delay I was busy... I will try replicate this here..
I send an image to Typebot. In Typebot I get an URL like:
https://typebot.myurl.io/api/typebots/<bunchoffstuff>
If I access this url I get the error: {"message":"Not authenticated"}
But if I access my minio, I can see that the original image url is something like:
https://s3.myurl.io/typebot/public/workspaces/<bunchofstuff>
And that's public accessible.
Yes I was wrong the domain is from s3 or minio not typebot builder
Differently from mine, yours is receiving the minio URL, not the bot, and it works because of that.
Why is mine different?
🤔
Are you using preview mode or live ?
It works if I don't use Whatsapp.
So is something on code of integration of whatsapp
Access Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"" ] }, "Action": [ "s3:ListBucketMultipartUploads", "s3:GetBucketLocation" ], "Resource": [ "arn:aws:s3:::typebot" ] }, { "Effect": "Allow", "Principal": { "AWS": [ ""
]
},
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::typebot"
],
"Condition": {
"StringEquals": {
"s3:prefix": [
"public"
]
}
}
},
{
"Effect": "Allow",
"Principal": {
"AWS": [
"" ] }, "Action": [ "s3:PutObject", "s3:AbortMultipartUpload", "s3:DeleteObject", "s3:GetObject", "s3:ListMultipartUploadParts" ], "Resource": [ "arn:aws:s3:::typebot/public"
]
}
]
}