Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'split' #1

Open
masonlai opened this issue Jan 15, 2020 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'split' #1

masonlai opened this issue Jan 15, 2020 · 0 comments

Comments

@masonlai
Copy link

AttributeError: 'NoneType' object has no attribute 'split'

Traceback (most recent call last)
File "C:\Users\hosumlai.virtualenvs\fyp_backendAPI-w1G8fKVR\lib\site-packages\flask\app.py", line 2463, in call
return self.wsgi_app(environ, start_response)
File "C:\Users\hosumlai.virtualenvs\fyp_backendAPI-w1G8fKVR\lib\site-packages\flask\app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "C:\Users\hosumlai.virtualenvs\fyp_backendAPI-w1G8fKVR\lib\site-packages\flask\app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\hosumlai.virtualenvs\fyp_backendAPI-w1G8fKVR\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "C:\Users\hosumlai.virtualenvs\fyp_backendAPI-w1G8fKVR\lib\site-packages\flask\app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\hosumlai.virtualenvs\fyp_backendAPI-w1G8fKVR\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\hosumlai.virtualenvs\fyp_backendAPI-w1G8fKVR\lib\site-packages\flask\app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\hosumlai.virtualenvs\fyp_backendAPI-w1G8fKVR\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "C:\Users\hosumlai.virtualenvs\fyp_backendAPI-w1G8fKVR\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\hosumlai.virtualenvs\fyp_backendAPI-w1G8fKVR\lib\site-packages\flask\app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\Users\hosumlai\PycharmProjects\fyp_backendAPI\flaskapp\my_app\user\views.py", line 18, in profile
access_token = auth_header.split(" ")[0]
AttributeError: 'NoneType' object has no attribute 'split'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant