httpd_uri: httpd_uri: Method '2' not allowed for URI

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

httpd_uri: httpd_uri: Method '2' not allowed for URI

Postby jcsbanks » Thu Jun 20, 2019 5:00 pm

When using Edge instead of Chrome I get this error:

Code: Select all

W (72320) httpd_uri: httpd_uri: Method '2' not allowed for URI '/rom/ds1_svg'
W (72320) httpd_txrx: httpd_resp_send_err: 405 Method Not Allowed - Request method for this URI is not handled by server
My svg image does not display. But it does in Chrome. I cannot find anything on method 2. I'll Wireshark it if no one has any ideas.

This registers the handler.

Code: Select all

httpd_uri_t file_download = {
    .uri       = "/*",  // Match all URIs of type /path/to/file (except index.html)
    .method    = HTTP_GET,
    .handler   = download_get_handler,
    .user_ctx  = NULL
};

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: httpd_uri: httpd_uri: Method '2' not allowed for URI

Postby ESP_Sprite » Fri Jun 21, 2019 2:47 am

As far as I can tell, 2 is HTTP_HEAD; Edge may be trying to get just the headers to see if the file changed vs its cached data. You probably haven't implemented a handler for the HEAD method, so the webserver is complaining.

Who is online

Users browsing this forum: Google [Bot], ok-home and 137 guests