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

"Unable to find suitable Auth plugin for syncEngine. Models require auth" #1900

Closed
jdulb17 opened this issue Jun 14, 2022 · 1 comment
Closed

Comments

@jdulb17
Copy link

jdulb17 commented Jun 14, 2022

Describe the bug

Hi all,

I followed the "Getting Started" guide for integrating Amplify with iOS; however, I've encountered an issue with the section around connecting to the cloud. Specifically, on the "Connect to the cloud" page and under the "Enable cloud syncing" section, it mentions that configuring the app to use Amplify API should allow your application data to be synced to the cloud automatically.

After following the steps and running the app, I receive the following error when calling either Amplify.DataStore.save or Amplify.DataStore.publisher:
"[StorageEngine] Unable to find suitable Auth plugin for syncEngine. Models require auth"

I searched through some forums/etc. and tried running amplify update api to include IAM as the authentication method for the API call and then ran amplify push. I've tried searching around for this specific error but the only instance I've found is on Issue #340 . There is a comment mentioning the same issue and that they followed similar steps; however, it is the very last comment on that thread.

I read through the steps a handful of times but I'm not sure if there's anything that I might be missing. Please let me know, thank you so much!

Steps To Reproduce

Steps to reproduce the behavior:
1. Follow the iOS Getting Started guide (https://docs.amplify.aws/start/q/integration/ios/)
2. Complete the "Enable cloud syncing" section on the "Connect to the cloud" page
3. Run the app and call either Amplify.DataStore.save or Amplify.DataStore.publisher

Expected behavior

The data will be synced to the cloud

Amplify Framework Version

1.26.2

Amplify Categories

API, DataStore

Dependency manager

Swift PM

Swift version

5.6.1

CLI version

8.5.0

Xcode version

13.4.1

Relevant log output

No response

Is this a regression?

No

Regression additional context

No response

Device

Simulator

iOS Version

iOS 15.5

Specific to simulators

No response

Additional context

No response

@jdulb17 jdulb17 changed the title "Unable to find suitable Auth plugin for syncEngine. Models require auth" (Possible gap in documentation/setup?) "Unable to find suitable Auth plugin for syncEngine. Models require auth" Jun 14, 2022
@jdulb17
Copy link
Author

jdulb17 commented Jun 14, 2022

Hi all,

My apologies - it looks like my issue stemmed from clicking into the "API (GraphQL)I" section on the "Next steps" page and running amplify add api. I created a net-new project and was able to get things to sync correctly. Thanks & sorry again!

I will close this now

@jdulb17 jdulb17 closed this as completed Jun 14, 2022
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