Skip to content

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

Description

@WenThing

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~ ✧

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions