UnexpectedValueException [ 0 ]: Wrong number of segments

DOCROOT/vendor/firebase/php-jwt/src/JWT.php [ 78 ]

73         if (empty($key)) {
74             throw new InvalidArgumentException('Key may not be empty');
75         }
76         $tks = explode('.', $jwt);
77         if (count($tks) != 3) {
78             throw new UnexpectedValueException('Wrong number of segments');
79         }
80         list($headb64, $bodyb64, $cryptob64) = $tks;
81         if (null === ($header = static::jsonDecode(static::urlsafeB64Decode($headb64)))) {
82             throw new UnexpectedValueException('Invalid header encoding');
83         }
  1. APPPATH/classes/controller/welcome.php [ 681 ] » Firebase\JWT\JWT::decode(arguments)

  2. {PHP internal call} » Controller_Welcome->action_votetopic()

  3. SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)

  4. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  5. SYSPATH/classes/kohana/request.php [ 1161 ] » Kohana_Request_Client->execute(arguments)

  6. DOCROOT/index.php [ 116 ] » Kohana_Request->execute()

Environment