Open OkenKhuman opened 3 years ago
I suspect the error was that the worker threw an exception. Did you try to inspect the worker using wrangler tail
?
+1
I encountered a similar problem - to elaborate, I received the following console error output when running the default dynamoDBExample in wrangler preview:
worker.js:16 Uncaught (in promise) TypeError: Object(...) is not a function at worker.js:16 at Array.reduce (<anonymous>) at c (worker.js:16) at Object.resolve (worker.js:16) at t.resolveMiddleware (worker.js:76) at t.e.send (worker.js:16) at worker.js:46 at worker.js:46 at worker.js:46 (anonymous) @ worker.js:16 c @ worker.js:16 resolve @ worker.js:16 t.resolveMiddleware @ worker.js:76 e.send @ worker.js:16 (anonymous) @ worker.js:46 (anonymous) @ worker.js:46 (anonymous) @ worker.js:46 Uncaught (in response) TypeError: Object(...) is not a function worker.js:16 Uncaught (in promise) TypeError: Object(...) is not a function at worker.js:16 at Array.reduce (<anonymous>) at c (worker.js:16) at Object.resolve (worker.js:16) at t.resolveMiddleware (worker.js:76) at t.e.send (worker.js:16) at worker.js:46 at worker.js:46 at worker.js:46 (anonymous) @ worker.js:16 c @ worker.js:16 resolve @ worker.js:16 t.resolveMiddleware @ worker.js:76 e.send @ worker.js:16 (anonymous) @ worker.js:46 (anonymous) @ worker.js:46 (anonymous) @ worker.js:46 Promise.then (async) (anonymous) @ worker.js:46 Uncaught (in response) TypeError: Object(...) is not a function
And the worker returns 1101 error and throws an exception (as above).
I tried this but I am getting 1101 error on request. I suspect the problem is because I use improper policy. Please provide the dynamoBD policy used.
Thank you.