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 saving trail while trying to add pictures #124

Open
truenicoco opened this issue Nov 11, 2024 · 5 comments
Open

Error saving trail while trying to add pictures #124

truenicoco opened this issue Nov 11, 2024 · 5 comments

Comments

@truenicoco
Copy link

truenicoco commented Nov 11, 2024

I can not add pictures to a trail. It used to work but I now have "Error saving trail". The image seems to upload fine and I can choose it as thumbnail, but I cannot save the trail. I have not found anything in the backend logs. The JS console in the browser displays this error:

**SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data [9.IyDMxZNP.js:1:60757](https://xxx.xxx.fr/_app/immutable/nodes/9.IyDMxZNP.js)
    Immutable 6
        onSubmit
        V
    (Asynchrone : promise callback)
        V
        x
    (Asynchrone : promise callback)
        x
    (Asynchrone : promise callback)
        x**

I'm running wanderer through docker-compose, and pulled the latest images today.

@Flomp
Copy link
Owner

Flomp commented Nov 11, 2024

That error does not have to be directly linked to image uploading. Something seems to go wrong while saving and you get this somewhat generic error. Can you save the trail without the images?

@pahham
Copy link

pahham commented Nov 11, 2024

Same error here. And I can save the trail without images.

@truenicoco
Copy link
Author

I can save the trail if I remove the picture(s) and it seems to work fine. I have another trail saved a few months ago, where I had no issue adding the picture which is still used as thumbnail. So it was not always broken.

@Thovi98
Copy link

Thovi98 commented Nov 12, 2024

What's the size of your pictures?

@Flomp
Copy link
Owner

Flomp commented Nov 15, 2024

Valid question. If your images are bigger than 5MB you will run into an error. I should probably be more specific in the error message.

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

4 participants