https://www.activepieces.com logo
@Abdul (Viva-Palestina)πŸ’” I am facing
# 🐢|general
s
@Abdul (Viva-Palestina)πŸ’” I am facing this in while saving key (building on code space) AxiosErrorΒ {message: 'Request failed with status code 400', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …} https://cdn.discordapp.com/attachments/1053778461275201576/1445844612295037019/image.png?ex=6940fc7a&is=693faafa&hm=59fb34c6dc8f275c7de4083e0f34783eed5fa4a348161a5abf33d41786b1912c&
a
can you please check the console ?
see what it has ?
s
api.ts:43 POST https://fuzzy-space-succotash-w999q699g55hp6x-4200.app.github.dev/api/v1/app-connections 400 (Bad Request) dispatchXhrRequest @ axios.js?v=f4242027:1696 xhr @ axios.js?v=f4242027:1573 dispatchRequest @ axios.js?v=f4242027:2107 _request @ axios.js?v=f4242027:2327 request @ axios.js?v=f4242027:2219 wrap @ axios.js?v=f4242027:8 request @ api.ts:43 post @ api.ts:103 upsert @ app-connections.ts:10 mutationFn @ app-connections-hooks.ts:51 await in mutationFn fn @ @tanstack_react-query.js?v=f4242027:1143 run @ @tanstack_react-query.js?v=f4242027:456 start @ @tanstack_react-query.js?v=f4242027:498 execute @ @tanstack_react-query.js?v=f4242027:1179 await in execute mutate @ @tanstack_react-query.js?v=f4242027:2532 (anonymous) @ @tanstack_react-query.js?v=f4242027:3167 (anonymous) @ create-edit-connection-dialog.tsx:344 (anonymous) @ chunk-DGNHWIFR.js?v=f4242027:1638 await in (anonymous) onClick @ create-edit-connection-dialog.tsx:344 onClick @ button.tsx:99 callCallback2 @ chunk-XIMN75CZ.js?v=f4242027:3680 invokeGuardedCallbackDev @ chunk-XIMN75CZ.js?v=f4242027:3705 invokeGuardedCallback @ chunk-XIMN75CZ.js?v=f4242027:3739 invokeGuardedCallbackAndCatchFirstError @ chunk-XIMN75CZ.js?v=f4242027:3742 executeDispatch @ chunk-XIMN75CZ.js?v=f4242027:7046 processDispatchQueueItemsInOrder @ chunk-XIMN75CZ.js?v=f4242027:7066 processDispatchQueue @ chunk-XIMN75CZ.js?v=f4242027:7075 dispatchEventsForPlugins @ chunk-XIMN75CZ.js?v=f4242027:7083 (anonymous) @ chunk-XIMN75CZ.js?v=f4242027:7206 batchedUpdates$1 @ chunk-XIMN75CZ.js?v=f4242027:18966 batchedUpdates @ chunk-XIMN75CZ.js?v=f4242027:3585 dispatchEventForPluginEventSystem @ chunk-XIMN75CZ.js?v=f4242027:7205 dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay @ chunk-XIMN75CZ.js?v=f4242027:5484 dispatchEvent @ chunk-XIMN75CZ.js?v=f4242027:5478 dispatchDiscreteEvent @ chunk-XIMN75CZ.js?v=f4242027:5455Understand this error app-connections-hooks.ts:103
a
maybe check the network tab
see why you got bad request
this is a new piece right
?
let me check network tab
a
this is in dev mode ?
s
Network : { "code": "ENGINE_OPERATION_FAILURE", "params": { "message": "Failed to run engine validate auth", "context": { "status": "INTERNAL_ERROR", "standardError": "Error: Cannot find module '@activepieces/pieces-framework'\nRequire stack:\n- /workspace/dist/packages/pieces/community/common/src/lib/helpers/index.js\n- /workspace/dist/packages/pieces/community/common/src/index.js\n- /workspace/dist/packages/pieces/community/fliqr-ai/src/index.js\n- /workspace/cache/v7/common/main.js\n at Module._resolveFilename (node:internal/modules/cjs/loader:1070:15)\n at Module._load (node:internal/modules/cjs/loader:923:27)\n at Module.require (node:internal/modules/cjs/loader:1137:19)\n at require (node:internal/modules/helpers:121:18)\n at Object. (/workspace/packages/pieces/community/common/src/lib/helpers/index.ts:1:1)\n at Module._compile (node:internal/modules/cjs/loader:1255:14)\n at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)\n at Module.load (node:internal/modules/cjs/loader:1113:32)\n at Module._load (node:internal/modules/cjs/loader:960:12)\n at Module.require (node:internal/modules/cjs/loader:1137:19) {\n code: 'MODULE_NOT_FOUND',\n requireStack: [\n '/workspace/dist/packages/pieces/community/common/src/lib/helpers/index.js',\n '/workspace/dist/packages/pieces/community/common/src/index.js',\n '/workspace/dist/packages/pieces/community/fliqr-ai/src/index.js',\n '/workspace/cache/v7/common/main.js'\n ]\n}\n", "standardOutput": "" } } }
a
when was the last time you pulled from main ?
s
2 hours ago
a
can you pull again ?
and let me see
if something broke
try this
close your instance
delete the cache folder
and start again
s
restarting new instance on code space
i guess something has broken
this is happening in last 6 hours I am facing this
a
Sorry for that, we will check it and get back to you, can you please open a pr, so we can test with it ?
Can you try on Linux without code spaces
s
I dont have dev environment locally, I tried many times in my local machine but ended up on landing to Code spaces, as it works best I occationally code and contribute If possible if you run on code space and diagnos issue: none of the new connection is setting up - ending with the errors above
@Abdul (Viva-Palestina)πŸ’” Can you help me to setup this, code spaces concept is not working as expected, is there any other way we can set env as soon as possible ?
d
its fixed now, pull latest main changes and try again. @shiva738
s
@David the loading issue is solved but "creating of new connection" is still there
Request URL https://refactored-space-invention-pggg5vggw6x399pw-4200.app.github.dev/api/v1/app-connections Request Method POST RES: { "code": "ENGINE_OPERATION_FAILURE", "params": { "message": "Failed to run engine validate auth", "context": { "status": "INTERNAL_ERROR", "standardError": "Error: Cannot find module '@activepieces/pieces-framework'\nRequire stack:\n- /workspace/dist/packages/pieces/community/common/src/lib/helpers/index.js\n- /workspace/dist/packages/pieces/community/common/src/index.js\n- /workspace/dist/packages/pieces/community/fliqr-ai/src/index.js\n- /workspace/cache/v7/common/main.js\n at Module._resolveFilename (node:internal/modules/cjs/loader:1070:15)\n at Module._load (node:internal/modules/cjs/loader:923:27)\n at Module.require (node:internal/modules/cjs/loader:1137:19)\n at require (node:internal/modules/helpers:121:18)\n at Object. (/workspace/packages/pieces/community/common/src/lib/helpers/index.ts:1:1)\n at Module._compile (node:internal/modules/cjs/loader:1255:14)\n at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)\n at Module.load (node:internal/modules/cjs/loader:1113:32)\n at Module._load (node:internal/modules/cjs/loader:960:12)\n at Module.require (node:internal/modules/cjs/loader:1137:19) {\n code: 'MODULE_NOT_FOUND',\n requireStack: [\n '/workspace/dist/packages/pieces/community/common/src/lib/helpers/index.js',\n '/workspace/dist/packages/pieces/community/common/src/index.js',\n '/workspace/dist/packages/pieces/community/fliqr-ai/src/index.js',\n '/workspace/cache/v7/common/main.js'\n ]\n}\n", "standardOutput": "" } } }
d
Is this a pull request, if not please create one so I can take a look at it. @shiva738