Git Product home page Git Product logo

Comments (9)

zhaolixiang avatar zhaolixiang commented on July 19, 2024 2

pip install sanic==19.3.1

from brave.

moschopsuk avatar moschopsuk commented on July 19, 2024

Is anything else printed back on the console to indicate an error ?

from brave.

aayushsaini000 avatar aayushsaini000 commented on July 19, 2024

No, I have fixed this error by adding app name in init.py
app = Sanic(name="brave")

from brave.

aayushsaini000 avatar aayushsaini000 commented on July 19, 2024

But still when i am running app and opening url i am getting 500 internal server error.

from brave.

pythexcel avatar pythexcel commented on July 19, 2024

@moschopsuk

from brave.

moschopsuk avatar moschopsuk commented on July 19, 2024

Hmm I'm unable to replicate can yous share more details of your setup please ?

from brave.

zhaolixiang avatar zhaolixiang commented on July 19, 2024

ERROR:sanic.root:Exception occurred while handling uri: 'http://localhost:5000/'
Traceback (most recent call last):
File "/Users/mark/sourcecode/brave/venv/lib/python3.7/site-packages/sanic/app.py", line 892, in handle_request
request, request_name=name
File "/Users/mark/sourcecode/brave/venv/lib/python3.7/site-packages/sanic/app.py", line 1220, in _run_request_middleware
response = await response
File "/Users/mark/sourcecode/brave/brave/api/init.py", line 42, in give_session_to_each_route_handler
request['session'] = session
TypeError: 'Request' object does not support item assignment

from brave.

aayushexcellence avatar aayushexcellence commented on July 19, 2024

@moschopsuk issue still not resolved.......
I am still getting error on http://0.0.0.0:5000/

etech@etech-Aspire-ES1-572:~/Desktop/brave$ pipenv run ./brave.py
/home/etech/Desktop/brave/brave/inputs/input.py:37: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if position is not None and position is not -1:
/home/etech/Desktop/brave/brave/inputoutputoverlay.py:137: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if a is not 'state' and hasattr(self, a):
/home/etech/Desktop/brave/brave/connections/connection_to_mixer.py:287: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if audio_or_video is 'video':
[2021-03-15 18:00:21 +0530] [55804] [INFO] Goin' Fast @ http://0.0.0.0:5000
INFO:sanic.root:Goin' Fast @ http://0.0.0.0:5000
[2021-03-15 18:00:29 +0530] [55804] [ERROR] Exception occurred while handling uri: 'http://0.0.0.0:5000/'
Traceback (most recent call last):
  File "/home/etech/.local/share/virtualenvs/brave-Ja8gTjmL/lib/python3.8/site-packages/sanic/app.py", line 891, in handle_request
    response = await self._run_request_middleware(
  File "/home/etech/.local/share/virtualenvs/brave-Ja8gTjmL/lib/python3.8/site-packages/sanic/app.py", line 1220, in _run_request_middleware
    response = await response
  File "/home/etech/Desktop/brave/brave/api/__init__.py", line 42, in give_session_to_each_route_handler
    request['session'] = session
TypeError: 'Request' object does not support item assignment
ERROR:sanic.root:Exception occurred while handling uri: 'http://0.0.0.0:5000/'
Traceback (most recent call last):
  File "/home/etech/.local/share/virtualenvs/brave-Ja8gTjmL/lib/python3.8/site-packages/sanic/app.py", line 891, in handle_request
    response = await self._run_request_middleware(
  File "/home/etech/.local/share/virtualenvs/brave-Ja8gTjmL/lib/python3.8/site-packages/sanic/app.py", line 1220, in _run_request_middleware
    response = await response
  File "/home/etech/Desktop/brave/brave/api/__init__.py", line 42, in give_session_to_each_route_handler
    request['session'] = session
TypeError: 'Request' object does not support item assignment

from brave.

aayushexcellence avatar aayushexcellence commented on July 19, 2024

Uploading Screenshot from 2021-03-15 18-01-56.png…

from brave.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.