vvoovv / blosm

Blosm addon for Blender. A few clicks import of Google 3D cities, OpenStreetMap, terrain. Global coverage. Source code is in the branch 'release'.
1.54k stars 183 forks source link

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

Open MaxLenormand opened 1 year ago

MaxLenormand commented 1 year ago

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 commented 1 year ago

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

jcav258 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

Thanks

DesertViber commented 1 year ago

Having the exact same issue using Premium version.

vvoovv commented 1 year ago

I'll examining the issue right now.

vvoovv commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Awesome! Thanks so much. Love the program BTW.V/R,Mark Spence+1-928-373-8636 (US)On May 22, 2023, at 5:35 AM, vvoovv @.***> wrote:

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.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Hansel8900 commented 1 year ago

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

vvoovv commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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

Hansel8900 commented 1 year ago

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

MattPaquito commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Question, How do I download it again without having to pay for the premium again?

On Mon, May 22, 2023 at 3:35 AM vvoovv @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/vvoovv/blender-osm/issues/351#issuecomment-1557059076, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7EFOYC4KWB2T4SXQLAY4B3XHNFQBANCNFSM6AAAAAAYIYG2K4 . You are receiving this because you commented.Message ID: @.***>

MattPaquito commented 1 year ago

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 commented 1 year ago

Ok, I'll take a look. Yeah it would be weird

On Mon, May 22, 2023 at 9:01 AM MattPaquito @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/vvoovv/blender-osm/issues/351#issuecomment-1557582135, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7EFOYGGENZDO4YBC7DI2RLXHOLWBANCNFSM6AAAAAAYIYG2K4 . You are receiving this because you commented.Message ID: @.***>

vvoovv commented 1 year ago

@MattPaquito

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

MattPaquito commented 1 year ago

@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 commented 1 year ago

@DesertViber

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

vvoovv commented 1 year ago

@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 commented 1 year ago

Working great my friend. Thank you so much for getting on this so quickly. Impressive.

On Mon, May 22, 2023 at 9:09 AM vvoovv @.***> wrote:

@vvoovv https://github.com/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.

— Reply to this email directly, view it on GitHub https://github.com/vvoovv/blender-osm/issues/351#issuecomment-1557593455, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7EFOYB6SEBBRWCP6H7KVH3XHOMTJANCNFSM6AAAAAAYIYG2K4 . You are receiving this because you were mentioned.Message ID: @.***>

MattPaquito commented 1 year ago

Solved on my side too ! Thanks @vvoovv

subscribetosomething commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

So strange. I am on Blender 3.5. Tried deleting the local files for all previous versions of Blender, removing the add on, restarting my PC then re-installing the add on.... Still the version showing is 2.6.5. Not sure what else I can do besides re-installing Blender.

Edit: I tried re-purchasing to generate a fresh view content link, and I checked the files inside the zip folder and they appear to be dated 3/1/2023 -- Perhaps Gumroad isn't directing me to the latest file?

vvoovv commented 1 year ago

@subscribetosomething

Let's try the following:

Get the latest zip-archive from https://prochitecture.gumroad.com/l/blosm (premium) or https://prochitecture.gumroad.com/l/blender-osm (base)

Get the file __init__.py out the archive. Check the version in the line 23 of that file. If it's 2.6.6, proceed to the installation.

subscribetosomething commented 1 year ago

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 commented 1 year ago

@subscribetosomething Thank you!

nike-997 commented 1 year ago

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 commented 1 year ago

Hi @nike-997

Please take look at #342

nike-997 commented 1 year ago

Solved, thanks @vvoovv !

jonahhawk commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@Marianomiomao

Will restarting Blender solve the problem?

Another thing to try: deactivate BlenderKit addon.

Marianomiomao commented 1 year ago

Marianomiomao

tried both. they do not seem to work

even different places do not seem to work in terrain mode

vvoovv commented 1 year ago

@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 commented 1 year ago

@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 commented 1 year ago

@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 commented 1 year ago

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

vvoovv commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

image image