sid88in / serverless-appsync-plugin

serverless plugin for appsync
MIT License
951 stars 189 forks source link

Plugin failing with error: Invalid AppSync Configuration: at appSync: must be object #566

Closed sailleshp closed 1 year ago

sailleshp commented 1 year ago

Hi Team,

We are intermittently getting below error from last 2 days due to which we are not able to deploy our binaries. It was working fine last week. Is there anything that you guys can help please.

image

bboure commented 1 year ago

Hi,

It seems to be a validation issue.

Please note: 2 days ago, we release v2 of this plugin. Which version are you using or trying to use?

From the error "appSync: must be object", I suspect you're using the wrong version. If you are trying to use v1, please make sure you pinned the plugin version in your package.json file and that you haven't upgraded by mistake.

sailleshp commented 1 year ago

Thanks for replying @bboure . We have identified the issue, in workflow file we were installing latest version of plugin which installed V2 version due to which it failed the entire deployment. Though I tried to move to V2 by following below documentation https://github.com/sid88in/serverless-appsync-plugin/blob/master/doc/upgrading-from-v1.md which doesn't seem to be straight forward. But will try again and update here.

bboure commented 1 year ago

Great!

Let me know if you need help with the migration.