Skip to content

fix: credentials: check for not found errors properly #899

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

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

g-linville
Copy link
Member

The recent refactoring of credential helpers to be run as tools resulted in a bug where the output of the credential tool (which would become part of the error message) would have things appended to it like :\n exit status 1, which was messing up the detection of Not Found errors. I fixed this in this PR by implementing our own function to examine the error message. I wish I could have used the defined const for this from the Docker package that we depend on, but it is unexported.

@g-linville g-linville merged commit 53a6ae0 into gptscript-ai:main Nov 6, 2024
10 checks passed
@g-linville g-linville deleted the fix-credential-errors branch November 6, 2024 17:53
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

Successfully merging this pull request may close these issues.

4 participants