I’m using the Chilkat plugin to work with Google Sheets, which requires authentication. The application that I’m writing authenticates properly when run on my Mac, but it crashes when running in the remote debugger on a raspberrypi where I ultimately will be running this application.
What’s very curious is that setting a break point on the line where the actual HTTP POST occurs allows the code to run fine in the remote debugger. See the last line of the code block below.
Dim oauth2 As New Chilkat.OAuth2
oauth2.TokenEndpoint = “https://www.googleapis.com/oauth2/v4/token”
// Replace these with actual values.
oauth2.ClientId = “myClientIDisHere”
oauth2.ClientSecret = “mySecretIsHere”
// Get the “refresh_token”
oauth2.RefreshToken = jsonToken.StringOf(“refresh_token”)
System.DebugLog("jsonToken = " + jsonToken.StringOf(“refresh_token”))
// Send the HTTP POST to refresh the access token.
success = oauth2.RefreshAccessToken()
p.s. How does one properly format a code block in this forum to make it appear with the usual font and color distinguishing it from the other part of the conversation? And is it possible to preview a post before it’s submitted?