Skip to content

ValueError: Only unicode objects are escapable. Got None of type <class 'NoneType'>. #65

Open
@kiasar

Description

@kiasar

Describe the bug
When I run this code on python 3.7, it will always say: "There may have been an issue with the consumer_key or consumer_secret you entered." But I'm pretty sure they are right.

The error is this:

/usr/local/lib/python3.7/dist-packages/oauthlib/oauth1/rfc5849/utils.py in escape(u)
     48     if not isinstance(u, str):
     49         raise ValueError('Only unicode objects are escapable. ' +
---> 50                          'Got {!r} of type {}.'.format(u, type(u)))
     51     # Letters, digits, and the characters '_.-' are already treated as safe
     52     # by urllib.quote(). We need to add '~' to fully support rfc5849.

ValueError: Only unicode objects are escapable. Got None of type <class 'NoneType'>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions