title: "Not enough segments" when seding a GET message with Bearer Token Authorization Header (flask_restful + flask_jwt_extended)
body: <p>I got this error in Flask Application:</p>
  
  <pre><code>curl http://0.0.0.0:8080/ -H "Authorization: Bearer TGazPL9rf3aIftplCYDTGDc8cbTd"
  {
    "msg": "Not enough segments"
  }
  </code></pre>
  
  <p>Here a sample:</p>
  
  <pre><code>from flask import Flask
  from flask_restful import Resource, Api
  from flask_jwt_extended import JWTManager, jwt_required
  
  app = Flask(__name__)
  jwt = JWTManager(app)
  api = Api(app)
  
  
  class HelloWorld(Resource):
      @jwt_required
      def get(self):
          return {'hello': 'world'}
  
  
  api.add_resource(HelloWorld, '/')
  </code></pre>
  
  <p>Console:</p>
  
  <pre><code> * Serving Flask app "app.py" (lazy loading)
   * Environment: development
   * Debug mode: on
   * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
   * Restarting with stat
   * Debugger is active!
   * Debugger PIN: 890-265-009
  127.0.0.1 - - [26/Apr/2020 02:02:32] "GET / HTTP/1.1" 422 -
  </code></pre>
  
  <p>I can't understand: What's wrong?</p>
  
  <p>The exception has been thrown in other lib (line 183 in site-packages/jwt/api_jws.py):</p>
  
  <pre><code>  def _load(self, jwt):
          if isinstance(jwt, text_type):
              jwt = jwt.encode('utf-8')
  
          if not issubclass(type(jwt), binary_type):
              raise DecodeError("Invalid token type. Token must be a {0}".format(
                  binary_type))
  
          try:
              signing_input, crypto_segment = jwt.rsplit(b'.', 1)
              header_segment, payload_segment = signing_input.split(b'.', 1)
          except ValueError:
              raise DecodeError('Not enough segments')
  </code></pre>