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

Error uploading GIF files #21

Open
dleadbetter opened this issue Oct 25, 2022 · 0 comments
Open

Error uploading GIF files #21

dleadbetter opened this issue Oct 25, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@dleadbetter
Copy link
Contributor

This following error occurs when attempting to upload a GIF. See the original issue for more information.

2022-10-25T15:25:24.974094+00:00 app[web.1]: I, [2022-10-25T15:25:24.974027 #12]  INFO -- : [291af02d-2016-4816-a839-a623154b463f] Started POST "/api/media_contents/upload" for 73.171.18.76 at 2022-10-25 15:25:24 +0000
2022-10-25T15:25:24.988020+00:00 app[web.1]: I, [2022-10-25T15:25:24.987939 #12]  INFO -- : [291af02d-2016-4816-a839-a623154b463f] Processing by Api::MediaContentsController#upload as HTML
2022-10-25T15:25:24.988170+00:00 app[web.1]: I, [2022-10-25T15:25:24.988115 #12]  INFO -- : [291af02d-2016-4816-a839-a623154b463f]   Parameters: {"media_contents"=>{"0"=>{"filename"=>"sosad.gif", "job_id"=>"3", "content"=>#<ActionDispatch::Http::UploadedFile:0x00007fd8aef68ec8 @tempfile=#<Tempfile:/tmp/RackMultipart20221025-12-kknn8k.gif>, @original_filename="sosad.gif", @content_type="image/gif", @headers="Content-Disposition: form-data; name=\"media_contents[0][content]\"; filename=\"sosad.gif\"\r\nContent-Type: image/gif\r\n">}}}
2022-10-25T15:25:55.143679+00:00 app[web.1]: I, [2022-10-25T15:25:55.143584 #12]  INFO -- : [291af02d-2016-4816-a839-a623154b463f] Completed 500 Internal Server Error in 30155ms (ActiveRecord: 5.5ms | Allocations: 5921)
2022-10-25T15:25:55.145661+00:00 app[web.1]: F, [2022-10-25T15:25:55.145596 #12] FATAL -- : [291af02d-2016-4816-a839-a623154b463f]   
2022-10-25T15:25:55.145675+00:00 app[web.1]: [291af02d-2016-4816-a839-a623154b463f] NoMethodError (undefined method `symbolize_keys' for nil:NilClass
2022-10-25T15:25:55.145676+00:00 app[web.1]: 
2022-10-25T15:25:55.145677+00:00 app[web.1]:       data = response['resource'].symbolize_keys.slice(*RESPONSE_KEYS)
2022-10-25T15:25:55.145678+00:00 app[web.1]:                                  ^^^^^^^^^^^^^^^):
2022-10-25T15:25:55.145678+00:00 app[web.1]: [291af02d-2016-4816-a839-a623154b463f]   
2022-10-25T15:25:55.145679+00:00 app[web.1]: [291af02d-2016-4816-a839-a623154b463f] triple-eye-effable (aa253cab6e55) app/services/triple_eye_effable/cloud.rb:72:in `parse_response'
2022-10-25T15:25:55.145679+00:00 app[web.1]: [291af02d-2016-4816-a839-a623154b463f] triple-eye-effable (aa253cab6e55) app/services/triple_eye_effable/cloud.rb:28:in `create_resource'
2022-10-25T15:25:55.145681+00:00 app[web.1]: [291af02d-2016-4816-a839-a623154b463f] triple-eye-effable (aa253cab6e55) app/models/concerns/triple_eye_effable/resourceable.rb:31:in `create_resource'
@dleadbetter dleadbetter added the bug Something isn't working label Oct 25, 2022
@dleadbetter dleadbetter self-assigned this Oct 25, 2022
@dleadbetter dleadbetter removed their assignment Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant