Chattahooligans / hooligan-hymnal-app

MIT License
12 stars 15 forks source link

Error posting with picture #188

Closed Mbwata closed 2 years ago

Mbwata commented 2 years ago

IMG_1832

When submitting a post with an image in it, I get an error and the post doesn't go through.

galenriley commented 2 years ago

What are you seeing in your server/heroku logs when this happens? Hopefully there's a good clue on that end.

On Sun, Nov 7, 2021 at 5:05 PM Matt H @.***> wrote:

[image: IMG_1832] https://user-images.githubusercontent.com/44037139/140663464-d0f042d6-f6a4-45f3-875a-9b0a2c4723ac.PNG

When submitting a post with an image in it, I get an error and the post doesn't go through.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Chattahooligans/hooligan-hymnal-app/issues/188, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEFIB4QE2FGZIUUJ33UALDUK3Z25ANCNFSM5HRJEVQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Mbwata commented 2 years ago

This is all I saw when I looked at the logs:

::ffff:10.42.0.252 - - [07/Nov/2021:22:29:14 +0000] "POST /api/feed HTTP/1.1" 500 - "-" "Expo/2.21.3.1012198 CFNetwork/1312 Darwin/21.0.0"

Posts without pictures seem to work just fine

galenriley commented 2 years ago

@Mbwata - Have you uploaded images successfully before? It's possible that cloudinary never got set up/connected/configured.

@shortnd - You're our server-side expert, here. Do you have any ideas?

Mbwata commented 2 years ago

I've never been able to do it. I'm also running on a year old version of the server code. Not sure if there is anything in a newer version that might fix it. I've been playing with this off and on for like a year and we're wanting to get it up and running before we start in MLS. I barely know what I'm doing here but "knows enough to be dangerous" makes me the most qualified in our SG.

galenriley commented 2 years ago

I would recommend reviewing the Hooligan Hymnal setup docs for the Cloudinary bits and making sure you are registered and have API keys and whatnot first. Getting on the current branch of the server code is probably a safe bet, and ensuring all of the environment variables are correct.

On Sun, Nov 7, 2021 at 5:47 PM Matt H @.***> wrote:

I've never been able to do it. I'm also running on a year old version of the server code. Not sure if there is anything in a newer version that might fix it. I've been playing with this off and on for like a year and we're wanting to get it up and running before we start in MLS. I barely know what I'm doing here but "knows enough to be dangerous" makes me the most qualified in our SG.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Chattahooligans/hooligan-hymnal-app/issues/188#issuecomment-962695024, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEFIB27OSPLGZALRN6RYVDUK36XFANCNFSM5HRJEVQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Mbwata commented 2 years ago

Guys I totally missed the Cloudinary setup. That sounds like that's my issue.