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

Share URL page opening with error #234

Closed
yuvirajsinh opened this issue Feb 1, 2022 · 12 comments
Closed

Share URL page opening with error #234

yuvirajsinh opened this issue Feb 1, 2022 · 12 comments

Comments

@yuvirajsinh
Copy link

Describe the bug

Not able to access any builds uploaded through AppBox. Share URL page opens with error.

To Reproduce

Steps to reproduce the behavior:

  1. Upload any build through AppBox
  2. Open Share URL on Safari
  3. See this error: "Uh oh! We couldn't load application information! Please make sure you are connected to the Internet or dropbox.com & dl.dropboxusercontent.com is not blocked and try again."

Expected behavior

Share URL page should open with options to Install latest build or Install previous builds

Screenshots

Screenshot 2022-02-01 at 12 02 27 PM

Desktop (please complete the following information):

  • OS: macOS Big Sur
  • Browser Safari
  • Version 11.2.1

Smartphone (please complete the following information):

  • Device: iPhone XR, iPhone 11
  • OS: iOS 13.5.1, 14., 15.
  • Browser Safari

Additional context

Facing this issue suddenly from today, it was working till yesterday

@kimalive
Copy link

kimalive commented Feb 1, 2022

I'm getting the same error and problem for all existing appbox links. Fails in destop browsers and on iPhone with the same error.

@radubogdan2k
Copy link

+1, I'm having the same issue on all my apps

@akkalbhor
Copy link

Same Issue for me as well.

@vineetchoudhary
Copy link
Member

Hi All,

There are some breaking changes from Dropbox. Now Dropbox no longer allows Cross-Origin requests which we used to fetch build information on web.getappbox.com. When you try to open your build installation web page you will see something like this on your web console -

Access to XMLHttpRequest at 'https://dl.dropboxusercontent.com/s/y5XXXXXXXXXXXXp/appinfo.json' from origin 'https://web.getappbox.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Right now I think a proxy server will help us to make AppBox work again. So, I'm working on it and keep you guys updated.

@radubogdan2k
Copy link

@vineetchoudhary Thanks for the quick response!

@vineetchoudhary
Copy link
Member

Hi Everyone,

Just created a proxy server on Heroku for a temporary time to make AppBox Web work. Now you can see all dl.dropboxusercontent.com request is going through the Heroku proxy server appbox-proxy-server.herokuapp.com. So, with this proxy server, all our existing apps will work as it is.

As this proxy server is now life line of AppBox, I'll move this proxy server to a more stable place like on AWS or Azure with some high availability so we can have this up 24x7.

Let me know if you guys still facing some issues.

@radubogdan2k
Copy link

Working great for me, thank you!

P.S. I think Heroku is already hosted on AWS

@vineetchoudhary
Copy link
Member

Yes @radubogdan2k. But I think Heroku doesn't provide a load balancer. I'm thinking like we can host two-three instances of this proxy server and then handle requests via a load balancer if one instance dies then another one can handle the requests. Also, some of our users create huge requests on AppBox Web at a same period of time (like for a day). So, multiple instances can handle these requirements very easly.

@radubogdan2k
Copy link

👍

@radubogdan2k
Copy link

@vineetchoudhary I'm assuming the iOS client is downloading the IPA directly from dropbox, right? I'm asking because earlier I only tested that the AppBox page is loading correctly but now actually trying to install the app (which is a few hundred MB), the iOS client is just staying on Waiting... for 10 minutes now instead of starting the Loading phase... just wondering if it's related to today's issue.

@vineetchoudhary
Copy link
Member

iOS client directly accesses the manifest and IPA file from Dropbox. CORS policy only applies to Websites with different domain names. So, I don't think this is related to the CORS policy. I just tested and the app installation is working fine. Can you please check the app signing things like provisioning profile, certificate etc...

@vineetchoudhary vineetchoudhary pinned this issue Feb 2, 2022
@radubogdan2k
Copy link

@vineetchoudhary It unblocked by itself after 25-30 minutes. Weird, no idea why the delay. Anyway, all good now, thanks again for the quick fix!

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

No branches or pull requests

5 participants