lk-code / hetzner-cloud-api-net

the project is a .NET library to access the Hetzner Cloud
https://lk-code.github.io/hetzner-cloud-api-net/
MIT License
25 stars 8 forks source link

Server.GetAllAsync() not working #24

Closed ljchuello closed 1 year ago

ljchuello commented 2 years ago

Hello..

When trying to perform a Server.GetAsync(serverId) or a GetAllAsync() I receive an error of the type "Message = "Object reference not set to an instance of an object."" It seems to me that something is happening with the token.

This is the code I am using. (I have deleted the token for security, but at the time of testing it was activated) Captura

And then I get this error. Sin título

I will appreciate your help. Thanks.

lk-code commented 1 year ago

Hi,

Which version do you have installed?

I just created a new CLI app project and then installed the latest version (2.0.8) via NuGet:

image
ljchuello commented 1 year ago

Hello,

This is what seems most strange to me, I also have the latest version of hetznercloudapi (2.0.8) via NuGet.

image

Is it possible that I can pass you my API KEY and you can try it for me?

image

I'm using NET Core 6, maybe it's a problem with the version of NET Core?

lk-code commented 1 year ago

Hi,

write an email to **** :)

lk-code commented 1 year ago

RESPONSE: The server does not have an assigned IPv6, so the mapping failed. The bug has been fixed and is available in version 2.0.10.