-
Notifications
You must be signed in to change notification settings - Fork 2k
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
NPE when retrieving virtual machine images #1181
Comments
US_WEST works fine from what I can tell.
A more explanatory error we get after that is:
Germany is not listed in the error. Not sure if GERMANY_* is not yet supported by this provider, or if it blocks access unless you have special permissions (accessing only from within Germany), in which case not sure how we would be able to test this.. |
also, @selevt - are you running this code from inside Germany? |
@martinsawicki yes, running this from Germany |
@jianghaolu, could it be related to the API version? Looking at the error, I see the SDK is using 2016-03-30, while Germany was added much more recently... |
@selevt Do you happen to have a dependency on an older version of azure-client-runtime? |
@selevt please confirm the also could you try listing the publishers as mentioned below. We need your help to debug this since our test subscription is not enabled for German regions. Azure azure = Azure
.configure()
.withLogLevel(HttpLoggingInterceptor.Level.BODY)
.authenticate(credFile)
.withDefaultSubscription();
for (VirtualMachinePublisher p : azure. azure.virtualMachineImages().publishers().listByRegion(Region.GERMANY_CENTRAL)) {
System.out.Println(p.Region());
} The reason for listing publisher is to narrow down the issue you are seeing, listing images in a region involves listing 4 levels of parent resources, but publisher listing is a single level call. We have logging enabled for the above azure client via In the log,
|
@selevt I can reproduce it with everything latest. Seems like a bug in the ChildListFlattener. I'm investigating. |
Fixed in a pull request. Will let you know when it's merged and released as a snapshot package. |
This has been fixed and released since beta4. |
Retrieving the images from the germany region with beta3 fails with a NPE.
Example:
Stacktrace:
The text was updated successfully, but these errors were encountered: