Hello,
The error
E2056 String literals may have at most 255 elements is raised by the IDE, you cannot set a string with more than 255 characters per line, so you should split the token in several lines. example:
sgcHTTP2Client1.Request.BearerToken := 'lasjdflasjdflaskdjf.....' +
'asdfjlasdjfsladfjsadlf....' +
'asldjfalsdjfsladjflsdjfk...' +
'asdlfkjasldfjsdalfj....' +
....
The second error I cannot reproduce and I cannot see the full code because you only attached a screenshot. I've created a simple sample where you can set the bearer token and do the HTTP request. In my tests, the server always return a 404 error.
HTTP2_OAuth2
In your code you don't save the response from server, and there is a final line where you create a TStringStream and do a ShowMessage that it makes no sense for me. What are you trying to do?
I hope this helps.
Kind Regards,
Sergio