Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: We are unable to complete your request. Please contact customer support for further assistance. #3

Closed
samjtro opened this issue Oct 27, 2024 · 4 comments

Comments

@samjtro
Copy link
Member

samjtro commented Oct 27, 2024

oauth request is working, but attempting a login results in the above message. will dig in further tomorrow.

@samjtro
Copy link
Member Author

samjtro commented Oct 28, 2024

testing now, im not sure if this is an issue because of my changes or an issue with the original library. will edit this as i figure things out.

@samjtro
Copy link
Member Author

samjtro commented Oct 28, 2024

the issue persists while using the original library (nmrshll/oauth2no-server), going to investigate further in the morning.

@samjtro
Copy link
Member Author

samjtro commented Oct 29, 2024

tokenSource := conf.TokenSource(oauth2.NoContext, token)
newToken, err := tokenSource.Token()
if err != nil {
    log.Fatalln(err)
}

if newToken.AccessToken != token.AccessToken {
    SaveToken(newToken)
    log.Println("Saved new token:", newToken.AccessToken)
}

client := oauth2.NewClient(oauth2.NoContext, tokenSource)
resp, err := client.Get(...)

@samjtro
Copy link
Member Author

samjtro commented Oct 29, 2024

this is an issue with the Exchange, it seems Schwab is rejecting the request because it doesn't trust the requesting server. need to further investigate.

@samjtro samjtro closed this as completed Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant