-
Notifications
You must be signed in to change notification settings - Fork 42
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
Getting "500 Internal Server Error" while accessing Melown Maps... #220
Comments
Sounds like a server configuration issue. I think there is a line to prevent issues like this in the original nginx sites-enabled configuration?
Unfortunately, the melown SSL certificate has not been renewed for some time now. You could try running an official example by using your own server mapconfig.json file. |
Hello @jrjdavidson , It doesn't seem to be an SSL certificate or Nginx configuration issue. I'm attaching two configurations that we've done (one is bing maps and one is maptiler). bing maps don't work but maptiler works just fine. You may give it a try on the following links where we can try to load these maps. Maptiler - https://rocksim.com/mapproxy/melown2015/tms/melown/maptiler/ We're also trying to integrate these maps on top of our terrain DEM data. so our map configs are as follows. bingMapConfig.json Maptiler - https://rocksim.com/store/map-config/terrain/ The thing is it was working all good so far but suddenly it stopped working. Could you please help us resolve the issue? Let us know you need more information. P.S. - we observed that it intermittently works but, is completely random, and that too it works just once in 100 reloads. |
have you created and added a bing maps API key toy your configuration? |
Yes, we did, |
Sorry, I really don't know what the issue could be. Here are some ideas that might or might not help. You might be able to get some information from the mapproxy or nginx logs that you can find on the server machine. According to the tutorials, the mapproxy logs can be found at
From the original error, it looks like there is something going from http to https scheme internally? It also looks like you are running ubuntu 1.14, I can tell you that on our 1.18 and 1.20 servers bing maps still works fine. Is it possible that you have exceeded your bing maps api quota? hope this helps |
In your case, you would have to replace the variable 'cadastre' with the name of your map in your store. Was it 'bing-terrain' in your case? In any case, have you check whether you exceed your bing-maps quota? That seems to be the most likely cause to a sudden change in functionality. |
I ran this command and I got this: |
Hi there, As per our discussion, we've recently set up a new VTS server with VTS version using the link "melown-focal.list", running on UBUNTU 20.04.6 LTS. We've also added Bing Maps along with other maps. While all other maps are functioning smoothly, we're encountering an error specifically with Bing Maps. The current error message reads: "Uncaught error: No value provided for variable {culture}." We've attempted solutions such as restarting VTS and reviewing logs. In the logs, we've identified an error related to reading a resource file:
Our map configuration is as follows: Please notice that we have also tried adding parameter for culture = en-US
We're committed to resolving this issue without switching to another viewer service, as we've invested significant effort and time into building the application, which was functioning well until recently. Additionally, we've learned that VTS has been archived and is no longer supported by Melown tech. We're concerned about other services and repositories. For instance, are the installer repositories, like the one we used for setting up VTS viewer using the command:
If these services are being discontinued, do we need to download them at our end as well ? Kindly guide us on resolving the issue and also the necessary steps to ensure continuity. Your assistance is greatly appreciated. |
the log error is for a malformed json file. Even if you fixed your mistake after mapproxy read the config file, the config files get frozen, so you might not be able to fix the resource with the same id. If I was you, I would try changing the id to 'bing-world2' and remove the culture key in your metadataUrl and see if that works. As for the packages getting discontinued- I'm worried about the same thing, but there isn't much to do apart from preparing yourself, as you mentioned. |
I made the changes in id, removed the culture in metaURL BUT still getting the same error. |
You might have to remove the previous offending configuration? From the troubleshooting page
The resource is uniquely defined by its group and id combination. The easiest way to work around this configuration freezing is just to define a new (fixed) resource with slightly different id. An alternative is to stop mapproxy, e.g. by sudo /etc/init.d/vts-backend-mapproxy stop |
We have tried this thing but it didn't work. |
I have a Ubuntu 18 machine, last I checked the bing maps layer is still
working fine
…On Wed, 17 Apr 2024 at 20:39, rushikesh-22 ***@***.***> wrote:
We have tried this thing but it didn't work.
Even we have freshly setup the Linux machine and then Bingmaps config with
the URL NOT having culture variable. But it is not working. Is it working
at your end ?
—
Reply to this email directly, view it on GitHub
<#220 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALFBMN4KNGYHUC3JBQNQ5CLY5YYLVAVCNFSM6AAAAABCUKWFL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRQG4YTMMJZHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Okay, I am working on 20.04.6 LTS. |
Hi, |
ncircle@ncircletech:/etc/apt/sources.list.d$ sudo apt-get update |
Not sure how to help with the ubuntu 18 install. On your Ubuntu 20 server, did you try just the Aerial data without Labels? Now that I read your message again, it seems that vts just doesn't read and pass the culture queries which seem to be required. |
The error started appearing since 4-5 days only. Previously it was working fine.
The exact error is:
Access to XMLHttpRequest at 'https://rocksim.com/mapproxy/melown2015/tms/melown/bing-world/boundlayer.json' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
-> refer image_01
Image_01
Code:
// create vts-browser.
this.browser = vts.browser('visualizer_mapDiv',
{
map: 'https://rocksim.com/store/map-config/bing-terrain/mapConfig.json',
minViewExtent:GlobalData.CloseViewZoomExtent //allow camera little bit closer
});
We even tried it from the examples given on the source website.
https://github.com/melowntech/vts-browser-js/wiki/Examples
But it is also not working.
Refer to following image for error:
Let me know if need any other information as well.
Any help would be appreciated. Thank you...
The text was updated successfully, but these errors were encountered: