-
Notifications
You must be signed in to change notification settings - Fork 200
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
crtError with Predictions, delegate provider failed. #3284
Comments
Hi @Slydune, thanks for opening this issue. I was unable to reproduce it on the latest Amplify version, 2.19.0 (you stated you are using 2.0.0, however Predictions is not available in said version). I used your code snippet and successfully got a result. I suspect there's some misconfiguration going on. Are you doing any sort of custom authentication in your app, or are you just using what's provided by In any case, could you please share:
That will help us identify what could be causing your issue. Thanks! |
amplifyconfiguration.json
I am only using Where would the verbose logs end up? The change of the logging value resulted in the same as above output in my console. |
Thanks for providing the Some additional questions:
Thanks! |
Log
I am only attempting with guest and only plan to use guest in the future, rechecked my package dependencies (Wasn't sure how to read SPM at first) and its showing me on current major version so 2.19.0 if I looked correctly. I did reconfigure my guest auth path and am now here, I realize this isn't the initial error but would still appreciate some help if you could point me in the right direction. |
Based on the error message:
it seems that your backend is not correctly configured. It could be that maybe you did not select Auth and Guest users while setting up the category. Or perhaps there was a problem with the deployment during Please try configuring again and check that you don't get any errors when running the CLI commands. |
Thanks for the info I've got it all figured out now. Was wondering if there is a way to force Textract vs Recognition when using predictions. I know there's an option for forcing internal iOS usage but don't see one for which AWS service to use. If not what's the deciding factor on which it is processed by? |
Using let result = try await Amplify.Predictions.identify(
.textInDocument(textFormatType: .all),
in: image
) Here's the applicable documentation. Using |
Describe the bug
Error:
crtError(AwsCommonRuntimeKit.CRTError(code: 6167, message: "Valid credentials could not be sourced by the delegate provider", name: "AWS_AUTH_CREDENTIALS_PROVIDER_DELEGATE_FAILURE"))
Happens whenever attempting to execute the below code
That is called in this button
Steps To Reproduce
Execute the above code on the Xcode simulator.
Expected behavior
Expected a normal predictions run with a return value.
Amplify Framework Version
2.0.0
Amplify Categories
Predictions
Dependency manager
Swift PM
Swift version
5
CLI version
12.6.0
Xcode version
14.3.1
Relevant log output
No response
Is this a regression?
No
Regression additional context
No response
Platforms
iOS
OS Version
iOS 16
Device
Iphone 14 Pro
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: