Comments (7)
PR-1124 Error attachment image
from chatwoot.
@pphlucas Could you share the steps to reproduce this error? Are you getting error for all image uploads?
from chatwoot.
I also have a problem uploading any file via chat. From what I understand, it is generating a URL like ".../rails/active_storage/blobs/redirect/..." and this URL is inaccessible, returning a 404 when accessed.
In the log, I have:
I, [2024-06-07T16:18:29.315947 #1] INFO -- : [4fbd62b3-f7b4-421e-ac1c-5a9bf0aca62b] Completed 302 Found in 6ms (ActiveRecord: 0.5ms | Allocations: 1851)
I, [2024-06-07T16:18:29.316697 #1] INFO -- : source=rack-timeout id=4fbd62b3-f7b4-421e-ac1c-5a9bf0aca62b timeout=15000ms service=18ms state=completed
I, [2024-06-07T16:18:29.465105 #1] INFO -- : [0d01f850-99c0-4fa3-8dd8-c2fcc5b9b83a] S3 Storage (373.6ms) Uploaded file to key: p5yzcouzaoyyd51gkv850uaekrs2 (checksum: 7Y/v7GxcsbHWZLRjudF5CQ==)
I, [2024-06-07T16:18:29.467183 #1] INFO -- : [0d01f850-99c0-4fa3-8dd8-c2fcc5b9b83a] [ActiveJob] Enqueued ActiveStorage::AnalyzeJob (Job ID: 4411ee95-8d13-4a05-acc8-29a5f1c01954) to Sidekiq(default) with arguments: #<GlobalID:0x00007f90f9c17118 @uri=#<URI::GID gid://chatwoot/ActiveStorage::Blob/468>>
I, [2024-06-07T16:18:29.472274 #1] INFO -- : [0d01f850-99c0-4fa3-8dd8-c2fcc5b9b83a] Rendered api/v1/accounts/conversations/messages/create.json.jbuilder (Duration: 3.8ms | Allocations: 911)
I, [2024-06-07T16:18:29.475854 #1] INFO -- : [0d01f850-99c0-4fa3-8dd8-c2fcc5b9b83a] Completed 200 OK in 578ms (Views: 4.8ms | ActiveRecord: 76.4ms | Allocations: 39821)
I, [2024-06-07T16:18:29.476674 #1] INFO -- : source=rack-timeout id=0d01f850-99c0-4fa3-8dd8-c2fcc5b9b83a timeout=15000ms service=588ms state=completed
I, [2024-06-07T16:18:29.828941 #1] INFO -- : source=rack-timeout id=dd568b56-d81c-4a2d-8c77-1546d8001ce5 timeout=15000ms state=ready
I, [2024-06-07T16:18:29.829953 #1] INFO -- : [dd568b56-d81c-4a2d-8c77-1546d8001ce5] Started GET "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdFFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3fd1b37a13b1ef5ab65f8d78d43cf25f0ed0af88/Captura%20de%20tela%20de%202024-06-04%2020-42-29.png" for 172.18.0.1 at 2024-06-07 16:18:29 +0000
I, [2024-06-07T16:18:29.833642 #1] INFO -- : [dd568b56-d81c-4a2d-8c77-1546d8001ce5] Processing by ActiveStorage::Blobs::RedirectController#show as PNG
I, [2024-06-07T16:18:29.833802 #1] INFO -- : [dd568b56-d81c-4a2d-8c77-1546d8001ce5] Parameters: {"signed_id"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdFFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3fd1b37a13b1ef5ab65f8d78d43cf25f0ed0af88", "filename"=>"Captura de tela de 2024-06-04 20-42-29"}
I, [2024-06-07T16:18:29.834870 #1] INFO -- : [dd568b56-d81c-4a2d-8c77-1546d8001ce5] Filter chain halted as :set_blob rendered or redirected
I, [2024-06-07T16:18:29.835100 #1] INFO -- : [dd568b56-d81c-4a2d-8c77-1546d8001ce5] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms | Allocations: 228)
POST: /api/v1/accounts/2/conversations/64/messages
RESPONSE :
.....data_url "https://..../rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdFVCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a2eb60469ad94d5e9bb917cdb8c74d65de3fffd0/Captura%20de%20tela%20de%202024-06-04%2020-42-29.png"
404
from chatwoot.
waiting-for-reply @vishnu-narayanan
from chatwoot.
@pphlucas, if you manually access the URL after the 404 error, will it work?
from chatwoot.
Yes, I manually click the URL and get a 404 error, I installed CHATWOOT through EASYPANEL, I really don't know what it could be, possible configuration in the CHATWOOT template for EASYPANEL
from chatwoot.
@TheOneironaut It seems the issue here is not with Chatwoot. It seems that you might not have a persistent storage setup configured.
If you are using docker, you need to specify the storage folder as a volume and make sure that the folder is getting stored persistently. https://docs.docker.com/storage/volumes/#use-a-volume-with-docker-compose
Or use a persistent storage provider like S3, GCS etc.
Closing this here for now.
from chatwoot.
Related Issues (20)
- message scheduling HOT 4
- Ability to hide chat bubble after business hours HOT 2
- Scope of M365 OAUTH2.0 HOT 3
- Command also treated as normal message HOT 1
- Attachment not linked when there's no message content HOT 1
- unable to select packages HOT 1
- Images and files messages: client receive it, but its still red in chatwoot (time out reading data for server) HOT 1
- User Avatars not showing HOT 1
- Installation Failed - Ruby version mismatch? HOT 8
- Webhook Map fields for creating custom data structure HOT 3
- Setting form width HOT 1
- docker upgrade from version 2.8.1 to latest fails HOT 3
- Hangs on Redis conf file HOT 17
- Break between working hours HOT 1
- Duplicate notificatoins - Latest Install HOT 1
- SSL Certificate Invalid and "Nothing here yet :/" Message for Password Reset Link HOT 1
- Whatsapp Cloud: Unable to receive images or attachments (500) HOT 5
- Add conversions to none admin agents HOT 1
- Subject Line Ticket Nubmer HOT 1
- Self host manual installation - compilation failed v3.11 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatwoot.