-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bun run build:stable in Hello World example always fails #30
Comments
@shakfu I get the same error. I fixed it by adding the following to my
I don't have a storage bucket to I just setup a dummy server locally. It didn't care what happened with the request and I just looked in |
Thanks 👍 |
Even after adding the dummy bucketUrl as advised and updating to the latest electrobun version, I still get an error: bucketURL not found: 8384 | });
8385 | await Bun.write(join(artifactFolder, "update.json"), updateJsonContent);
8386 | console.log("bucketUrl: ", config.release.bucketUrl);
8387 | console.log("generating a patch from the previous version...");
8388 | const urlToPrevUpdateJson = join(config.release.bucketUrl, buildEnvironment, `update.json`);
8389 | const updateJsonResponse = await fetch(urlToPrevUpdateJson + `?${cacheBuster}`).catch((err) => {
^
TypeError: fetch() URL is invalid
code: "ERR_INVALID_URL"
at /$bunfs/root/electrobun:8389:43
8388 | const urlToPrevUpdateJson = join(config.release.bucketUrl, buildEnvironment, `update.json`);
8389 | const cacheBuster = Math.random().toString(36).substring(7);
8390 | const updateJsonResponse = await fetch(urlToPrevUpdateJson + `?${cacheBuster}`).catch((err) => {
8391 | console.log("bucketURL not found: ", err);
8392 | });
8393 | if (updateJsonResponse.ok) {
^
TypeError: undefined is not an object (evaluating 'updateJsonResponse.ok')
at /$bunfs/root/electrobun:8393:27
error: script "build:stable" exited with code 7 Do I have actually have a dummy server running? |
@shakfu I had a dummy server running at the specified location. |
@gburnett thanks for the clarification. I think this is bound to confuse newcomers.. |
Yes, quite likely that it will. I would guess that, in future, the maintainers will check for the existence of this config before attempting the request. It might be an easy PR for someone to contribute. |
Is there a way to build the hello world example without using fetch and without failing?
The text was updated successfully, but these errors were encountered: