apache / incubator-streampark

Make stream processing easier! Easy-to-use streaming application development framework and operation platform.
https://streampark.apache.org/
Apache License 2.0
3.91k stars 1.01k forks source link

[Bug]The token was expected to have 3 parts #2370

Closed denglhh closed 1 year ago

denglhh commented 1 year ago

Search before asking

Java Version

1.8.0_312

Scala Version

2.12.x

StreamPark Version

2.0.0

Flink Version

1.13.2

deploy mode

yarn-application

What happened

Debug the/link/app/start interface through the api, and prompt:The token was expected to have 3 parts, but got 1. Response status:401

example(Token is copied from Token manager): curl -X POST -H "Accept:/" -H "BearerToken:b702a408028cbf3ff5d8049ae73d1c3fb28c5fd9c4d2526984fc16c56a3b6ec11bb1eb4193dd95a4bda47eac2a36a7c8547ce484e71549e6d981028ff63885b97d4741ae0b72e39fba233420306a95b668ca2a65dce636759e7eeac3866732b1aa5353f9366fc988690286a41efc913cc2c9915ea773b572f5d73d1a7ed150a0a49fd8f5353df4faf0f69cb82f74cc8e0319a7f317f0bbb572be41bd8065c394" -H "Content-Type:application/x-www-form-urlencoded" --data-urlencode "allowNonRestored=false&flameGraph=false&id=100026&savePoint=cc&savePointed=false" "http://hdfs-test03.yingzi.com:12345/flink/app/start"

Error Exception

The token was expected to have 3 parts, but got 1.

Screenshots

图片 图片

Are you willing to submit PR?

Code of Conduct

wolfboys commented 1 year ago

parameter key of token in header is: "Authorization", not "BearerToken"

wolfboys commented 1 year ago

parameter key of token in header is: "Authorization", not "BearerToken"