pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.69k stars 282 forks source link

Error generating ios package #2218

Closed mikkom closed 2 years ago

mikkom commented 2 years ago

I received the following error when generating a package for https://onnikka.net

Error: Error generating iOS package. Status code: 405 Error: Details:

Stack trace: @https://www.pwabuilder.com/index-b5b87e06.js:1:12140 asyncFunctionResume@[native code] @[native code] promiseReactionJobWithoutPromise@[native code]

ghost commented 2 years ago

Hello mikkom, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

leonorader commented 2 years ago

So.... I was also about to generate an ios package, but it showed me the same 405 error.

2220, #2221, #2222 are all the duplicates of the same error.

I have checked the code, wanted to understand the problem, and I have found out that it is cause of a few missing environment variables, defined in /src/script/utils/environment.ts file. The ios package generator script is looking for a iosPackageGeneratorUrl variable, which is currently not there. So I have checked the history, which shows that it was there previously, but the last merge went wrong. As you can see, iOs platform was added just before the merge.

image

@JudahGabriel I hope I could help resolve all these isssues.

JudahGabriel commented 2 years ago

@Jaylyn-Barbee looks like when you resolve the conflicts in your env branch, it removed the iOS platform URL.

@mikkom I've fixed this issue. You may need to refresh the site to see the change. Please reopen this case if you're still having issues.