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
Publish-BcContainerApp fails when app has a certain size #3260
Comments
Hi there, I was just wondering if there are any feedback on this issue yet, as I have another partner that is experiencing the same issue as described above. Your feedback in this regard will be greatly appreciated. Greetings, |
Sorry, didn't see this issue - if possible, I would like to get my hands on an app, which causes this issue - then I can troubleshoot this. |
I tried to make a repro here https://github.com/microsoft/bcsamples-bingmaps.pte/actions/runs/8153202748 - but that doesn't fail. |
Hi Freddy, Facing this issue, please let me know where can I send you copy of the extensions to test it from your side. Thank you |
You can email a download link to freddyk at microsoft dot com and I will try to repro this. |
On this issue, I did get an app from @eclipses, which failed publishing. |
@CriticalMax - on this
When you publish using s2s - you will NOT publish into dev scope - it will publish into global (PTE) scope - just FYI (which you also can see on the URL (api.businessce....) |
Describe the issue
When publishing our main app (65mb) to a cloud sandbox into dev scope we get an unexpected (and unspecific) error.
Scripts used to create container and cause the issue
Full output of scripts
Additional context
We are using service to service auth, which you said wouldn't be possible in a comment under one of your blog posts but the app will still be published and installed despite the error message, it just takes around 10-15 minutes.
We created the app registration as shown in the guide (API.ReadWrite.All, Automation.ReadWrite.All, admin consent granted) and successfully added an entry in the business central entra applications page. Authentication works fine and all of our other apps (way smaller, around 100kb-25mb) don't run into this issue and get published/installed just fine.
Maybe I looked in the wrong places but I couldn't find limitations on the file size except for SOAP services (65,536 kilobytes) which seems to match our app but surely this isn't the problem at hand.
The error stems from the GetResult() method when sending the request to publish the app and I played around with the timeout and other httpHandler properties but that's where my research ended.
As a workaround I created a loop which checks every minute if the app is installed and while this works I would like to know if an app this large is the problem in general or if there really is some kind of problem either in the containerHelper or in Microsoft's handling of the request in the backend.
Do you know of any limitations regarding app file sizes when publishing to cloud environments or could this really be some sort of bug?
The text was updated successfully, but these errors were encountered: