Problem with accessing the api in a web page hosted in the IIS - autodesk-forge

I am making a forge web application, I have this page on an IIS server and it does not work for me, it does not display the model and it generates the following error in the front:
onDocumentLoadFailure() - errorCode:7
ForgeViewer.js
when I run my application locally and it generates a port if it works correctly.
Could you help me since I think the error is that you can access the api or something from a port that forge uses for the IIS
Thank you so much

Error code 7 stands for:
An unhandled response code was returned when accessing a network resource (HTTP 'everything else')
This error is issued by the viewer when its requests fail with response code other than 401, 403, 404, or 5XX.
I'd suggest that you check the Network tab of your browser's dev tools. For example, here's how to do that in Google Chrome. The failing request (typically highlighted in red) can typically provide more information about why it failed.

Related

Why do I get a 403 error when I tried to open a website?

I tried to go to [capterra.com], but I get this error:
403 ERROR
The request could not be satisfied.
Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)
Request ID: gl_jhiv6CXIVdD-qAeFEQXy9ymYLGqqXOR5MOKQI3Jpu2dlQk4tWIw==
What should I do?

IIS cannot access ASP.NET web.config file

I'm a new forge user in BIM 360, my viewing model works well in VS but when it move to IIS, it shows error code about web.config file with error code
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x8007000d
Config Error
Config File \?\C:\inetpub\wwwroot\BIM 360\web.config
Requested URL http://www.surveyviewer.com:3000/
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
This is not related to forge, you may google based on your IIS version, there's already an answer for IIS V7

Chrome. Remote debugging from connected Android Device: CORS issue

I have a SPA running on my localhost:3000 and my ASP.NET Core 3.1 Web API running on localhost:44372.
I'm trying to debug the SPA from my connected Android Device. I connected the device, did port forwarding, everything is well, SPA gets opened, but then it does a request to Web API and receives CORS error. When I check network tab I see that the origin is https://localhost:3000, which is correct. Does chrome remote debugging mode somehow replace the origin, because everything works well if I open the SPA locally?
I tried to debug Web API project with custom middleware, but I'm unable to hit the breaking point: seems like it returns CORS error before pipeline even started.
Here are my CORS configs in Web API:
builder.UseCors(x => x
.WithOrigins("https://localhost:3000", "http://localhost:3000")
.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials())
UPDATE
The CORS errors:
UPDATE 2
I also forwarded the port 44372 which I have the Web API on and the error changed to: net::ERR_CERT_AUTHORITY_INVALID. Is this an issue with the chrome on android? I'm not quite sure how to address it. The issue seems to be with the Web API server certificate, because SPA gets loaded properly.
I managed to solve the issue by opening https://localhost:44372 on the Device. There I got a security warning, but when I chose "proceed to localhost (unsafe)" I was able to reach Web API. Then https://localhost:3000 started working well.

Track sent but not received in application Application Insights

I installed version in 6.0.1 of MarkPieszak/angular-application-insights, imported the module and specified the right instrumentation key from my Application Insights App (type: node.js). A track is sent with status code 200 but I don't see any data shown in Azure.
https://github.com/MarkPieszak/angular-application-insights
Is there something I overlook here?
I was expecting exceptions to show up in the Failure Panel in Azure. Now I found out that in there only server side failures are shown. After looking under Browser in Azure I found the received exceptions I was looking for. My bad.

Google App Engine - Serving video url's from Google Cloud Storage Error in Chrome

I'm developing an app locally right now in Google App Engine in which users can upload videos. I've set up the Google Cloud Storage library and set the read-access to public.
In the dev server, you can access the files via the URL: http://localhost:8080/_ah/gcs/bucket/filename
I'm trying to serve the files in a video HTML tag but it resulting in an error in Chrome. I get the message: Failed to load resource: the server responded with a status of 500 (Internal Server Error). The server console shows the request for the file fails.
This only happens in Chrome and works fine in other browsers.
Any idea why this would be happening? It's a little hard to debug.
You need to use a URL that leads to a Cloud Storage object. It looks like:
https://storage.googleapis.com/YOUR_BUCKET/YOUR_OBJECT
Look in the Console to get the name of your default app bucket. Usually it's the same as your app id.