question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception occurred while handling uri: 'http://localhost:5005/favicon.ico

See original GitHub issue

hello, I install rasa X new version,run “rasa shell”,It’s error, I get this inspecting the core logs:

2019-07-30 13:23:09,608 [ERROR]  Exception occurred while handling uri: 'http://localhost:5005/'
Traceback (most recent call last):
  File "/home/duan/anaconda3/lib/python3.7/site-packages/sanic/app.py", line 893, in handle_request
    handler, args, kwargs, uri = self.router.get(request)
  File "/home/duan/anaconda3/lib/python3.7/site-packages/sanic/router.py", line 407, in get
    return self._get(request.path, request.method, "")
  File "/home/duan/anaconda3/lib/python3.7/site-packages/sanic/router.py", line 469, in _get
    raise NotFound("Requested URL {} not found".format(url))
sanic.exceptions.NotFound: Requested URL / not found
2019-07-30 13:23:17,398 [ERROR]  Exception occurred while handling uri: 'http://localhost:5005/favicon.ico'
Traceback (most recent call last):
  File "/home/duan/anaconda3/lib/python3.7/site-packages/sanic/app.py", line 893, in handle_request
    handler, args, kwargs, uri = self.router.get(request)
  File "/home/duan/anaconda3/lib/python3.7/site-packages/sanic/router.py", line 407, in get
    return self._get(request.path, request.method, "")
  File "/home/duan/anaconda3/lib/python3.7/site-packages/sanic/router.py", line 469, in _get
    raise NotFound("Requested URL {} not found".format(url))
sanic.exceptions.NotFound: Requested URL /favicon.ico not found

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ngochuyenluucommented, Sep 27, 2019

Hello, I tried to open it in a browser, with address http://localhost:5005, it returned ‘hello from Rasa 1.2.5’ but http://localhost:5005/favicon.ico, it returned the error above. But if I don’t open the browser, and test in another terminal, for example I sent:

curl -XPOST localhost:5005/webhooks/rest/webhook -d '{"sender":"Me","message":"how are you?"}'

It replied me [{"recipient_id":"Me","text":"I'm doing very well. Thanks!"}]

1reaction
jwheatcommented, Sep 6, 2019

I have this as well

Running Windows 10, fwiw.

When I initially execute rasa run there are no errors in the console.

Simply hitting the url : http://localhost:5005/ correctly show this in the browser: Hello from Rasa: 1.2.5

However hitting that url in the browser causes the following to display in the console:

Exception occurred while handling uri: 'http://localhost:5005/favicon.ico'
Traceback (most recent call last):
    File "c:\users\jonathan\appdata\local\programs\python\python36\lib\site-packages\sanic\app.py", line 893, in handle_request
        handler, args, kwargs, uri = self.router.get(request)
    File "c:\users\jonathan\appdata\local\programs\python\python36\lib\site-packages\sanic\router.py", line 407, in get
        return self._get(request.path, request.method, "")
    File "c:\users\jonathan\appdata\local\programs\python\python36\lib\site-packages\sanic\router.py", line 469, in _get
        raise NotFound("Requested URL {} not found".format(url))
sanic.exceptions.NotFound: Requested URL /favicon.ico not found

I don’t think it’s a big deal, it’s simply not finding the favicon file when the Sanic server spins up.

Just for fun I dropped a random one in the root of the project, restarted rasa but that didn’t seem to help, which makes sense, the Sanic server DocRoot is probably elsewhere.

edit: Just to verify this is the result of a 404, the ngrok console displays this:

HTTP Requests
 -------------
GET  /favicon.ico              404 Not Found
GET  /                         200 OK 
Read more comments on GitHub >

github_iconTop Results From Across the Web

Rasa Open Source
when chat with rasa in terminal i get below exception. Exception occurred while handling uri: 'http://localhost:5005/favicon.ico' Traceback ...
Read more >
I'm getting favicon.ico error - Stack Overflow
When I run my code, chrome is opening and everything is working just fine. I'm getting some sort of error in the Output...
Read more >
Error [ERROR] Exception occurred while handling on async ...
On await asyncio.sleep(0.1) I am getting error: [ERROR] Exception occurred while handling uri: 'http://127.0.0.1:8000/api/new-answer'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found