Skip to content
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

update checks broken #66

Open
jmozd opened this issue Sep 12, 2024 · 3 comments
Open

update checks broken #66

jmozd opened this issue Sep 12, 2024 · 3 comments

Comments

@jmozd
Copy link

jmozd commented Sep 12, 2024

Quba-1.4.0.AppImage on Linux started on command line, reports the following after startup:

Error: Error: Cannot find latest-linux.yml in the latest release artifacts (https://github.com/ZUGFeRD/quba-viewer/releases/download/v1.4.0/latest-linux.yml): HttpError: 404 
"method: GET url: https://github.com/ZUGFeRD/quba-viewer/releases/download/v1.4.0/latest-linux.yml\n\nPlease double check that your authentication token is correct. Due to security reasons, actual status maybe not reported, but 404.\n"
Headers: {
  "server": "GitHub.com",
  "date": "Thu, 12 Sep 2024 18:57:45 GMT",
  "content-type": "text/plain; charset=utf-8",
  "vary": "X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With",
  "cache-control": "no-cache",
  "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
  "x-frame-options": "deny",
  "x-content-type-options": "nosniff",
  "x-xss-protection": "0",
  "referrer-policy": "no-referrer-when-downgrade",
  "content-security-policy": "default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'",
  "content-encoding": "gzip",
  "content-length": "29",
  "x-github-request-id": "E7A2:5D967:3EB3A3B:3FBEF39:66E339A8"
}
    at createHttpError (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:14:12)
    at ElectronHttpExecutor.handleResponse (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:116:20)
    at ClientRequest.<anonymous> (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:82:26)
    at ClientRequest.emit (node:events:527:28)
    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:101:6917)
    at SimpleURLLoaderWrapper.emit (node:events:527:28)
    at Object.newError (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/node_modules/builder-util-runtime/out/index.js:47:19)
    at fetchData (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/out/providers/GitHubProvider.js:102:50)
    at async GitHubProvider.getLatestVersion (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/out/providers/GitHubProvider.js:109:23)
    at async AppImageUpdater.getUpdateInfoAndProvider (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:305:19)
    at async AppImageUpdater.doCheckForUpdates (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:319:24)
(node:25336) UnhandledPromiseRejectionWarning: Error: Cannot find latest-linux.yml in the latest release artifacts (https://github.com/ZUGFeRD/quba-viewer/releases/download/v1.4.0/latest-linux.yml): HttpError: 404 
"method: GET url: https://github.com/ZUGFeRD/quba-viewer/releases/download/v1.4.0/latest-linux.yml\n\nPlease double check that your authentication token is correct. Due to security reasons, actual status maybe not reported, but 404.\n"
Headers: {
  "server": "GitHub.com",
  "date": "Thu, 12 Sep 2024 18:57:45 GMT",
  "content-type": "text/plain; charset=utf-8",
  "vary": "X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With",
  "cache-control": "no-cache",
  "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
  "x-frame-options": "deny",
  "x-content-type-options": "nosniff",
  "x-xss-protection": "0",
  "referrer-policy": "no-referrer-when-downgrade",
  "content-security-policy": "default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'",
  "content-encoding": "gzip",
  "content-length": "29",
  "x-github-request-id": "E7A2:5D967:3EB3A3B:3FBEF39:66E339A8"
}
    at createHttpError (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:14:12)
    at ElectronHttpExecutor.handleResponse (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:116:20)
    at ClientRequest.<anonymous> (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:82:26)
    at ClientRequest.emit (node:events:527:28)
    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:101:6917)
    at SimpleURLLoaderWrapper.emit (node:events:527:28)
    at Object.newError (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/node_modules/builder-util-runtime/out/index.js:47:19)
    at fetchData (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/out/providers/GitHubProvider.js:102:50)
    at async GitHubProvider.getLatestVersion (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/out/providers/GitHubProvider.js:109:23)
    at async AppImageUpdater.getUpdateInfoAndProvider (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:305:19)
    at async AppImageUpdater.doCheckForUpdates (/tmp/.mount_Quba-1PVjaQZ/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:319:24)
(Use `quba --trace-warnings ...` to show where the warning was created)
(node:25336) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

according to the URL, this seems to be some check for the existence of newer versions - but the checked URL is not present on Github. Seems like electron builder didn't generate that file?

@jstaerk
Copy link
Contributor

jstaerk commented Sep 16, 2024

The files are generated in the publish workflow, correct but we started that on windows, re-run it on the mac and tried to upload the files which were additionally generated. Must have missed a file. Will try to run a complete workflow on the mac from the beginning to the end next time.

@jmozd
Copy link
Author

jmozd commented Sep 16, 2024

@jstaerk Thank you for looking into this. Please note that my report is for Linux, not Mac.

@jstaerk
Copy link
Contributor

jstaerk commented Sep 16, 2024

I know and thats the only platform that can actually be built from windows, sorry, might have accidentally have used a --win instead of --win --linux at first and then only uploaded the binary. Will try to remember the latest-.yml next time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants