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

Getting 404 when create 'Shareable link' from the 'Save to' menu and resolved it with no idea why it resolved #28

Closed
WenThing opened this issue Sep 25, 2023 · 1 comment

Comments

@WenThing
Copy link

Just to report an issue I had after setup external access with https [#22 #17 ] <-- These were great help, the collaboration feature works after re package the project (make images) based on the instructions ٩(ˊᗜˋ*)و✧

Problem: When I created 'Shareable link' in the 'Save to' menu, an error prompt: "Couldn't create share link".

My solution: I edited the excalidraw.env.production file
from this

REACT_APP_BACKEND_V2_GET_URL=https://test.com/api/v2/
REACT_APP_BACKEND_V2_POST_URL=https://test.com/api/v2/post/

to this

REACT_APP_BACKEND_V2_GET_URL=https://test.com/**api/v2/scenes/**
REACT_APP_BACKEND_V2_POST_URL=https://test.com/**api/v2/scenes/**

After repackage the project using 'make patch images' and 'make update-docker-compose-version', the 'Share Link' is working now. ✧✧

Why would I add the /scenes to the url? I was referring to this alswl/excalidraw-storage-backend. The BACKEND_V2_GET_URL and BACKEND_V2_POST_URL are:

BACKEND_V2_GET_URL: http://localhost:8080/api/v2/scenes/
BACKEND_V2_POST_URL: http://localhost:8080/api/v2/scenes/

The strangest part is that the /api/v2/post url was sticking there till I did the repackage project a few times in order to apply the changes to the excalidraw, I tried make patch image , make images .

Nevertheless, thanks for sharing this excalidraw-collaboration project with us, it really amazing and work like magic now~ ✧

@leesonaa
Copy link

thanks,it worked

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

3 participants