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

Error 500 #15

Open
naudski opened this issue Aug 22, 2024 · 2 comments
Open

Error 500 #15

naudski opened this issue Aug 22, 2024 · 2 comments

Comments

@naudski
Copy link

naudski commented Aug 22, 2024

Hi,

I deployed your app to try it out. Did everything you described in your manual.
But when I try to access the website it finds the Azure Subscription, but then returns an error 500.
Error: 500 'NoneType' object has no attribute 'windows_configuration'
Any ideas?

Best regards,
Arnaud

@naudski
Copy link
Author

naudski commented Aug 22, 2024

I think the error comes from the cache.py file in Utilities:

def get_price(currency, vm):
vm_type = "Linux"
if vm.os_profile.windows_configuration:
vm_type = "Windows"

@sg3-141-592
Copy link
Owner

Hey @naudski , thanks for raising this. I've not been able to find the particular VM type you'd need to have a VM that doesn't have windows_configuration but I've added some defensive code to ensure that setting exists before trying to access it #16 .

Do you know if you've got any interesting VMs in the subscription you're getting an error for like Windows Classic VMs or unusual Operating Systems? I've not been able to recreate this issue yet.

I've just pushed a new version of the App v1.4. Your VM Start Stop should update automatically with 24 hours, if you could let me know if you're still seeing this issue.

image

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

2 participants