Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

unable to capi sync with local tarball installation #1197

Open
ryanleecode opened this issue Jul 17, 2023 · 0 comments
Open

unable to capi sync with local tarball installation #1197

ryanleecode opened this issue Jul 17, 2023 · 0 comments
Labels
needs triage We need to review this issue

Comments

@ryanleecode
Copy link
Contributor

ryanleecode commented Jul 17, 2023

When running capi sync using a tarball created from deno task dnt in capi, it fails

➜  capi-react-native-example git:(aaa) ✗ yarn sync
yarn run v1.22.19
$ capi sync node
(node:61075) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/server/client/syncNets.js:42
        throw new Error(await response.text());
              ^

Error: Error: commits/v0.0.0-local: invalid response
    at github (file:///src/server/capi.dev/delegator.ts:92:11)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async file:///src/server/capi.dev/delegator.ts:71:18
    at async getSha (file:///src/server/capi.dev/delegator.ts:69:10)
    at async handler (file:///src/server/capi.dev/delegator.ts:29:15)
    at async file:///src/server/errorHandler.ts:6:14
    at async Server.<anonymous> (file:///src/server/corsHandler.ts:18:22)
    at async Server.#respond (https://deno.land/[email protected]/http/server.ts:299:18)
    at upload (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/server/client/syncNets.js:42:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/server/client/syncNets.js:16:34
    at async Promise.all (index 0)
    at async file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/server/client/syncNets.js:12:25
    at async withSignal (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/util/withSignal.js:10:16)
    at async setup (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/cli/sync.js:68:21)
    at async Command.runSyncNode [as fn] (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/cli/sync.js:38:35)
    at async Command.execute (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/deps_2/deno.land/x/[email protected]/command/command.js:704:13)
    at async Command.parseCommand (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/deps_2/deno.land/x/[email protected]/command/command.js:592:20)

Node.js v20.3.1
@ryanleecode ryanleecode added the needs triage We need to review this issue label Jul 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs triage We need to review this issue
Projects
Status: No status
Development

No branches or pull requests

1 participant