#community-help

Troubleshooting 405 Error with Typesense Local Install

TLDR Digamber needed help troubleshooting a 405 error while trying to create a collection on a local Typesense install. Kishore Nallan suspected a bad HTTP query and Digamber confirmed the issue was a malformed URL.

Powered by Struct AI

1

14
23mo
Solved
Join the chat
Dec 23, 2021 (23 months ago)
Digamber
Photo of md5-a0246423746b3b51425d05cfd9c494ae
Digamber
10:38 AM
Hi guys, looking for some help
I’m trying to run a local install of typesense.

When I try to create a collection i’m getting 405 => Method Not Allowed response.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:40 AM
What is the exact response text?
Digamber
Photo of md5-a0246423746b3b51425d05cfd9c494ae
Digamber
10:40 AM
That is the exact response text
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:41 AM
What client are you using?
Digamber
Photo of md5-a0246423746b3b51425d05cfd9c494ae
Digamber
10:41 AM
I’m doing curl requests
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:42 AM
Can you post the exact command here?
Digamber
Photo of md5-a0246423746b3b51425d05cfd9c494ae
Digamber
10:42 AM
Just a note - it works when I use cloud deployment
10:42
Digamber
10:42 AM
just not with local install
10:45
Digamber
10:45 AM
I’m using wp_remote_request function which is a WordPress specific function to make requests
So i don’t know exactly what you would need here ?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:46 AM
Typesense doesn't really return 405 during logical validation, so I suspect some bad http query being sent which is getting rejected.
Digamber
Photo of md5-a0246423746b3b51425d05cfd9c494ae
Digamber
10:47 AM
Ah - i think that helps
10:47
Digamber
10:47 AM
Will check and get back to you

1

11:12
Digamber
11:12 AM
Kishore Nallan - thanks for your help - the 405 response was due to a malformed url
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:13 AM
👍