ParseError: Expected list. Received object.
at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/webflow-api@2.0.0/node_modules/webflow-api/core/schemas/builders/schema-utils/getSchemaUtils.js:45:23)
at Generator.next (<anonymous>)
at fulfilled (webpack-internal:///(rsc)/./node_modules/.pnpm/webflow-api@2.0.0/node_modules/webflow-api/core/schemas/builders/schema-utils/getSchemaUtils.js:11:32)
Expected a successful request with webhooks list as a response.
Debugging
I made a fetch request using the following snippet:
SDK Version: 2.0.0
Bug
Code Snippet:
Error Trace:
Expected a successful request with webhooks list as a response.
Debugging
I made a fetch request using the following snippet:
which resulted in a successful request with the following response:
Conclusion
The SDK expects schema of an array instead of the object response
{ webhooks: [] }
. The conflict in schema generates this error.