Unable to upload Custom Component

  • Goal: want to update existing custom component in app

  • Steps: 1. have an existing custom component, 2. upgrade the @tryretool/custom-component-support npm package to latest 1.1.0 version, 3. run npx retool-ccl dev in bash, 4. after long waiting [ERROR] Error [plugin zip-and-send] /node_modules/@tryretool/custom-component-support/apiError.js:45:19:
    45 │ return new ApiError(Failed to connect to the url. The error was: ${JSON.stringify(e, null, 2)}.);

  • Details:

  • Screenshots: /Users/gabor.soos/workspace/retool-custom-component/node_modules/@tryretool/custom-component-support/apiError.js:45:19:
    45 │ return new ApiError(Failed to connect to the url. The error was: ${JSON.stringify(e, null, 2)}.);
    ╵ ^

    at handleApiError (/Users/gabor.soos/workspace/retool-custom-component/node_modules/@tryretool/custom-component-support/apiError.js:45:20)
    at CustomComponentLibraryWrappedClient.request (/Users/gabor.soos/workspace/retool-custom-component/node_modules/@tryretool/custom-component-support/customComponentLibraryWrappedClient.js:47:56)
    at async CustomComponentLibraryWrappedClient.customComponentLibrariesLibraryIdRevisionsPostRaw (/Users/gabor.soos/workspace/retool-custom-component/node_modules/@tryretool/custom-component-support/retool_client/apis/CustomComponentLibraryApi.js:216:26)
    at async CustomComponentLibraryWrappedClient.customComponentLibrariesLibraryIdRevisionsPost (/Users/gabor.soos/workspace/retool-custom-component/node_modules/@tryretool/custom-component-support/retool_client/apis/CustomComponentLibraryApi.js:229:26)
    at async /Users/gabor.soos/workspace/retool-custom-component/node_modules/@tryretool/custom-component-support/build_components.js:223:40
    at async /Users/gabor.soos/workspace/retool-custom-component/node_modules/esbuild/lib/main.js:1495:27

    This error came from the "onEnd" callback registered here:

    /Users/gabor.soos/workspace/retool-custom-component/node_modules/@tryretool/custom-component-support/build_components.js:218:18:
    218 │ build.onEnd(async (result)=>{
    ╵ ~~~~~

    at setup (/Users/gabor.soos/workspace/retool-custom-component/node_modules/@tryretool/custom-component-support/build_components.js:218:19)
    at handlePlugins (/Users/gabor.soos/workspace/retool-custom-component/node_modules/esbuild/lib/main.js:1293:21)
    at buildOrContextImpl (/Users/gabor.soos/workspace/retool-custom-component/node_modules/esbuild/lib/main.js:979:5)
    at Object.buildOrContext (/Users/gabor.soos/workspace/retool-custom-component/node_modules/esbuild/lib/main.js:787:5)
    at /Users/gabor.soos/workspace/retool-custom-component/node_modules/esbuild/lib/main.js:2197:68
    at new Promise ()
    at Object.context (/Users/gabor.soos/workspace/retool-custom-component/node_modules/esbuild/lib/main.js:2197:27)
    at Object.context (/Users/gabor.soos/workspace/retool-custom-component/node_modules/esbuild/lib/main.js:2037:58)
    at buildAndDeployDevContiniously (/Users/gabor.soos/workspace/retool-custom-component/node_modules/@tryretool/custom-component-support/build_components.js:337:48)

3 Likes

5 posts were merged into an existing topic: Custom Component upload failing