lucid-kv / lucid

High performance and distributed KV store w/ REST API. 🦀

Home Page:https://clintnetwork.gitbook.io/lucid/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[PUT] Method not allowed.

imclint21 opened this issue · comments

Hi,

I try to store a an object using the PUT method and I get a 405 error, and also when I change the JWT token (or remove it) nothing changes, I still have this error!

{
    "message": "Method not allowed."
}

Screenshot:

image

I'm on the warp-migration branch.

Best regards

commented

Seems like I misunderstood how the API is supposed to work because nickel didn't separate path parameters from query parameters. The /api/kv/ endpoint returned a 405 error because the routing doesn't have a proper 404 fallback yet, but that's another problem. a7108df changes the structure of the api routing to strictly use path parameters instead of query parameters, so this should be fixed now.

Ah, I just tried now and it works perfectly!

Thank you