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

[SOLVED] Forbidden, 403 Error when Importing terrain (Premium add-on) #351

Open
MaxLenormand opened this issue May 20, 2023 · 61 comments
Open

Comments

@MaxLenormand
Copy link

Hi there,

Really cool add-on, though I'm faililng to import terrain and not quite sure why.

All I'm getting is a 403 Error when hitting osm -> Terrain - import as shown here:

CleanShot 2023-05-20 at 15 58 42

For context I'm running Blender 3.4.1 on Macos 13.2.1 on a M1 Pro Macbook Pro

Here's my add-on setup (I'm using the premium version):

CleanShot 2023-05-20 at 16 02 13

I am able to get imagery & building from OSM

Any help would be helpful, thanks!
I have the know-how to get elevation data myself but this add-on would make it a lot easier to get fetch it quickly, hope I can get to the bottom of this!

Cheers

@cxy7722
Copy link

cxy7722 commented May 20, 2023

Just started experiencing the same issue today. I am on the free version though.

@jcav258
Copy link

jcav258 commented May 20, 2023

I am seeing the same issue as of today. Importing terrain from most areas throws back a Forbidden error (e.g., Laramie, WY) however some locations still import fine (e.g., Virginia Tech). Hoping this can be resolved. Thanks!

@v0d
Copy link

v0d commented May 21, 2023

Same problem here (Free Version)

It looks like the tile repository is returning that error:
Example request for: http://s3.amazonaws.com/elevation-tiles-prod/skadi/N01/N01E103.hgt.gz

GET /elevation-tiles-prod/skadi/N01/N01E103.hgt.gz HTTP/1.1
Accept-Encoding: identity
Host: s3.amazonaws.com
User-Agent: custom
Connection: close

HTTP/1.1 403 Forbidden
x-amz-request-id: 30E7K3Q9KYNXXT4T
x-amz-id-2: yIm1AwjBDGmqok3FrcF5ZwvC1Dx2zT7XT8eEMKrh3y/XhXCEWdZtMybHGmkgBI1lSgWwoutw+BA=
Content-Type: application/xml
Transfer-Encoding: chunked
Date: Sun, 21 May 2023 07:28:41 GMT
Server: AmazonS3
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>30E7K3Q9KYNXXT4T</RequestId><HostId>yIm1AwjBDGmqok3FrcF5ZwvC1Dx2zT7XT8eEMKrh3y/XhXCEWdZtMybHGmkgBI1lSgWwoutw+BA=</HostId></Error>

@xplodwild
Copy link

Same error here trying to export European tiles on the premium version. @vvoovv any hint on what's happening?

Thanks

@DesertViber
Copy link

Having the exact same issue using Premium version.

@vvoovv
Copy link
Owner

vvoovv commented May 22, 2023

I'll examining the issue right now.

@vvoovv
Copy link
Owner

vvoovv commented May 22, 2023

http://s3.amazonaws.com/elevation-tiles-prod/skadi/N01/N01E103.hgt.gz

I think have found the cause of the problem.

The link should start from https (with s at the end):
https://s3.amazonaws.com/elevation-tiles-prod/skadi/N01/N01E103.hgt.gz

I hope to provide the fix today.

@vvoovv
Copy link
Owner

vvoovv commented May 22, 2023

The fix for the base version can be already downloaded on Gumroad:
https://prochitecture.gumroad.com/l/blender-osm

The fix for the premium version will follow.

@DesertViber
Copy link

DesertViber commented May 22, 2023 via email

@Hansel8900
Copy link

Hi, I have tried to download again the add-on right now, but still not working, same error 403.

@vvoovv
Copy link
Owner

vvoovv commented May 22, 2023

Hi, I have tried to download again the add-on right now, but still not working, same error 403.

What is the version of the addon?

@vvoovv
Copy link
Owner

vvoovv commented May 22, 2023

I uploaded the fixes on Gumroad.

The base version:
https://prochitecture.gumroad.com/l/blender-osm

The premium version:
https://prochitecture.gumroad.com/l/blosm

Please provide feedback if it's working now.

@Hansel8900
Copy link

Hi, I have tried to download again the add-on right now, but still not working, same error 403.

What is the version of the addon?

version 2.6.6

@vvoovv
Copy link
Owner

vvoovv commented May 22, 2023

@Hansel8900
Could you please show a screenshot of the System Console in Blender after you tried to import the terrain:
On Windows: Main Menu -> Window -> Toggle System Console.

@vvoovv
Copy link
Owner

vvoovv commented May 22, 2023

@Hansel8900
Can you download the file after clicking on the link https://s3.amazonaws.com/elevation-tiles-prod/skadi/N01/N01E103.hgt.gz ?

@Hansel8900
Copy link

Ok, I have actually removed and re-added the add-on and now it works! Thanks :)

@MattPaquito
Copy link

MattPaquito commented May 22, 2023

I am using the premium version, I used the link received by email some time ago to re-download the package (expecting it will be updated). But I am still having the error :

Downloading the file from http://s3.amazonaws.com/elevation-tiles-prod/skadi/N40/N40W075.hgt.gz...
Error: HTTP Error 403: Forbidden

If I click on the link, I get an access denied, if i modify it to https I can download it.

@MattPaquito
Copy link

UPDATE : I did a quick and dirty fix on my installation : I update the script 'app/blender.py' from the addon installation folder to replace http by https in the terrainUrl and it works now 👍

@DesertViber
Copy link

DesertViber commented May 22, 2023 via email

@MattPaquito
Copy link

When I paid for the subscription few years ago, I got an email with a link that let me download the package. I re-used the same link hoping that the package will be updated ... It will be weird to have to pay for a bug fix since I believe the premium was a life-time subscription.

@DesertViber
Copy link

DesertViber commented May 22, 2023 via email

@vvoovv
Copy link
Owner

vvoovv commented May 22, 2023

@MattPaquito

Please install the latest version (2.6.6) of the addon.

@MattPaquito
Copy link

@vvoovv - How do I access the latest version (2.6.6) of the addon ? Is it updated on the link I received some years ago (when I paid for the premium) ?

@vvoovv
Copy link
Owner

vvoovv commented May 22, 2023

@DesertViber

You can always get the latest version of the addon using the download link in your purchase confirmation email.

@vvoovv
Copy link
Owner

vvoovv commented May 22, 2023

@vvoovv - How do I access the latest version (2.6.6) of the addon ? Is it updated on the link I received some years ago (when I paid for the premium) ?

Yes, you can always get the latest version of the addon (currently 2.6.6) using the download link in your purchase confirmation email.

@DesertViber
Copy link

DesertViber commented May 22, 2023 via email

@MattPaquito
Copy link

Solved on my side too ! Thanks @vvoovv

@vvoovv vvoovv changed the title Forbidden, 403 Error when Importing terrain (Premium add-on) [SOLVED] Forbidden, 403 Error when Importing terrain (Premium add-on) May 23, 2023
@subscribetosomething
Copy link

Still having this 403 issue with the free version. The latest version I'm able to download is 2.6.5 so I'm guessing perhaps free hasn't been updated yet.

@vvoovv
Copy link
Owner

vvoovv commented May 24, 2023

@subscribetosomething

The version is Gumroad is 2.6.6. Just checked it again.

Please try removing all versions of the addon. Then restart Blender and install the latest version from Gumroad.

@subscribetosomething
Copy link

Ok great, after downloading the file today it is now updated to 2.6.6 and works flawlessly. Not sure why it was giving me the older version yesterday.
Just bought premium since you're so helpful and I use this add-on regularly. Thanks!

@vvoovv
Copy link
Owner

vvoovv commented May 25, 2023

@subscribetosomething
Thank you!

@nike-997
Copy link

nike-997 commented Jun 5, 2023

Hi,

I had the same issue and I've installed the new 2.6.6 version but I'm now experiencing a different error:

image

The error occurs only in some zones, depending only on coordinates and not on the domain size I'm trying to export.

Any idea on possible solutions?

Thanks

@vvoovv
Copy link
Owner

vvoovv commented Jun 5, 2023

Hi @nike-997

Please take look at #342

@nike-997
Copy link

nike-997 commented Jun 5, 2023

Solved, thanks @vvoovv !

@jonahhawk
Copy link

I think this must be the case. I ended up editing the file and correcting the urls. It's easier than uninstall/reinstall and setup.

@ClickClocks
Copy link

ClickClocks commented Jul 5, 2023

Hi, Today I bought and install this software. When I select for example an area in France Around Mont Blanc Terrain is Fine but it I select somewhere in Peru or UK gives me the error 403. Please Advice
I'm runnning: "version": (2, 7, 0) and Blender Version 3.5.1 on MacOS Monterrey

@vvoovv
Copy link
Owner

vvoovv commented Jul 5, 2023

Hi @ClickClocks

What were you trying to import? If Google 3D Tiles, please take look at #356.
If it was terrain, please attach the screenshot with the addon panel and the error.

@Marianomiomao
Copy link

Hi, Today I bought and install this software. When I select for example an area in France Around Mont Blanc Terrain is Fine but it I select somewhere in Peru or UK gives me the error 403. Please Advice I'm runnning: "version": (2, 7, 0) and Blender Version 3.5.1 on MacOS Monterrey

i do suffer the same problem rn here's a screenshot on win 10, version 2.7, blender 3.6
immagine

@vvoovv
Copy link
Owner

vvoovv commented Jul 5, 2023

@Marianomiomao

Will restarting Blender solve the problem?

Another thing to try: deactivate BlenderKit addon.

@Marianomiomao
Copy link

Marianomiomao commented Jul 5, 2023

Marianomiomao

tried both. they do not seem to work

even different places do not seem to work in terrain mode

@vvoovv
Copy link
Owner

vvoovv commented Jul 5, 2023

@Marianomiomao

Please show the output of Blender's System Console (Main Menu -> Window -> Toggle System Console) after you pressed the button "import" for the terrain. If you are on Mac or Linux, please start Blender from the command prompt.

@Marianomiomao
Copy link

@Marianomiomao

Please show the output of Blender's System Console (Main Menu -> Window -> Toggle System Console) after you pressed the button "import" for the terrain. If you are on Mac or Linux, please start Blender from the command prompt.

immagine
everytime i click import it gives me this : Downloading the file from http://s3.amazonaws.com/elevation-tiles-prod/skadi/N36/N36W122.hgt.gz...

@vvoovv
Copy link
Owner

vvoovv commented Jul 6, 2023

@Marianomiomao
The cause of the problem is now clear to me. The URL for the terrain should start from https instead of http. Let's find out why it happens, since the addon with the version 2.7.0 and above requests the correct URL for the terrain.

Please type osm in the search box in the list of Blender addons in the Blender Preferences and show me the result of the search.

image

@ClickClocks
Copy link

I reinstall on my Laptop and everything is OK. Not sure how to fix it on my Main Computer

@vvoovv
Copy link
Owner

vvoovv commented Jul 6, 2023

@ClickClocks

Could you please show me the console output on your main computer after you pressed the import button.

Also, please search for osm on your main computer as described in my previous message.

@elewa92
Copy link

elewa92 commented Jul 8, 2023

Hello.
I have that terrain issue when importing too
the HTTP Error 403 : Forbidden
i installed the latest version too and still having the same problem ( i was using the old version till last week and everything was Ok with terrain )

@vvoovv
Copy link
Owner

vvoovv commented Jul 8, 2023

@elewa92

Please show me the output of Blender's System Console after you pressed the import button.

Also, please type osm in the search box in the list of Blender addons in the Blender Preferences and show me the result of the search.

image

@elewa92
Copy link

elewa92 commented Jul 8, 2023

image
image

@vvoovv
Copy link
Owner

vvoovv commented Jul 8, 2023

@elewa92
Was only one addon found when you typed osm?

@elewa92
Copy link

elewa92 commented Jul 8, 2023

yes, i removed the old add-on when i installed this one
The strange thing that it works perfectly with buildings

@elewa92
Copy link

elewa92 commented Jul 8, 2023

weird thing , it worked now :D
Thanks man
i think i needed to restart blender after adding the new version

@Marianomiomao
Copy link

@Marianomiomao The cause of the problem is now clear to me. The URL for the terrain should start from https instead of http. Let's find out why it happens, since the addon with the version 2.7.0 and above requests the correct URL for the terrain.

Please type osm in the search box in the list of Blender addons in the Blender Preferences and show me the result of the search.

image

Sorry for the late reply: here's what appears on. only the 2.7
immagine
retried today and it seems to work, idk how

@vvoovv
Copy link
Owner

vvoovv commented Jul 8, 2023

The general recommendation is to

  • Delete all previous versions of Blender-OSM or Blosm addon by typing osm in the search box in the Blender preference
  • Restart Blender
  • Install the latest version of the Blosm addon

@Betohry
Copy link

Betohry commented Jul 22, 2023

Osm2 Its not solved, I have the problem in Google 3d tile, without url

@vvoovv
Copy link
Owner

vvoovv commented Jul 22, 2023

Hi @Betohry

This issue is about the 403 error in the terrain import. For your error please take look at #356,

@Betohry
Copy link

Betohry commented Jul 22, 2023

Hi @Betohry

This issue is about the 403 error in the terrain import. For your error please take look at #356,

Thanks! Ive already repaired that, they give me more than a api, because they give one for project and I had a old project there, the problem now that the data cames flat from google, should I have to open another ticket?
Thanks and good luck with this nice project!
Flat

@vvoovv
Copy link
Owner

vvoovv commented Jul 22, 2023

@Betohry

Yes, please open a separate ticket.

@wangning121
Copy link

wangning121 commented Nov 1, 2023

The reason about http and https is correct. for some guys dont know programing can download this verson:
blender-osm-修改模型无法下载403错误.zip

@vvoovv
Copy link
Owner

vvoovv commented Nov 1, 2023

@wangning121

The problem is fixed in the latest version of the Blosm addon. It's enough to download and install it from the official source.

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

No branches or pull requests