ccbikai / Sink

⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
https://sink.cool
GNU Affero General Public License v3.0
1.42k stars 501 forks source link

save link not working #10

Closed cirrusflyer closed 3 weeks ago

cirrusflyer commented 4 weeks ago

Screenshot from 2024-05-31 14-26-47 I have everything setup and am able to login and see the entire system. But when trying to create a link, on the empty link page, I see a "spinning" icon, and when I try to create the first link, the save button doesn't seem to work.

laotoutou commented 4 weeks ago

image

Me too

{
    "url": "/api/link/list?limit=24&cursor",
    "statusCode": 500,
    "statusMessage": "",
    "message": "Cannot read properties of undefined (reading 'list')",
    "stack": ""
}
ccbikai commented 4 weeks ago

Hello, check the binding of KV to see if it has been bound in both the production environment and the preview environment

The variable name of KV should be in uppercase KV , is it written incorrectly?

laotoutou commented 4 weeks ago

image image

This configuration solved my problem.

cirrusflyer commented 3 weeks ago

Thanks. I had the KV variable, but it wasn't assigned to a KV namespace. I assigned KV to KV and it's working now.