Skip to content

An uncaught exception occurred: _Map_base::at (when an extension isn't found in mime_types.h) #415

@joelguittet

Description

@joelguittet

Hello,

I'm getting the error in the title while trying to retrieve bootstrap files. Log is bellow:

(2022-04-21 21:54:03) [INFO    ] Request: 192.168.1.20:53661 0x18473e0 HTTP/1.1 GET /static/bootstrap/bootstrap.min.css
(2022-04-21 21:54:03) [INFO    ] Response: 0x18473e0 /static/bootstrap/bootstrap.min.css 200 0
(2022-04-21 21:54:03) [INFO    ] Request: 192.168.1.20:53666 0x75805638 HTTP/1.1 GET /static/bootstrap/bootstrap.min.js
(2022-04-21 21:54:03) [INFO    ] Response: 0x75805638 /static/bootstrap/bootstrap.min.js 200 0
(2022-04-21 21:54:03) [INFO    ] Request: 192.168.1.20:53669 0x75801a50 HTTP/1.1 GET /static/bootstrap/bootstrap.min.css.map
(2022-04-21 21:54:03) [ERROR   ] An uncaught exception occurred: _Map_base::at
(2022-04-21 21:54:03) [INFO    ] Response: 0x75801a50 /static/bootstrap/bootstrap.min.css.map 500 0
(2022-04-21 21:54:03) [INFO    ] Request: 192.168.1.20:53669 0x75801a50 HTTP/1.1 GET /static/bootstrap/bootstrap.min.js.map
(2022-04-21 21:54:03) [ERROR   ] An uncaught exception occurred: _Map_base::at
(2022-04-21 21:54:03) [INFO    ] Response: 0x75801a50 /static/bootstrap/bootstrap.min.js.map 500 0

This is raised here: https://github.com/CrowCpp/Crow/blob/master/include/crow/routing.h#L1359 and I don't know why at all.

The 2 files are available of course (404 error returned if they are not).

Any help is appreciated :-)

Joel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions