microsoft / Appsample-Photosharing

Sample code for a UWP photo sharing app.
Other
286 stars 116 forks source link

Calling /api/sasurl - 500 Error #33

Closed nor0x closed 8 years ago

nor0x commented 8 years ago

I setup the project following the instructions in GettingStarted.md. Everything is working fine, except the sasurl endpoint, which returns a 500 response code with the following body { "message": "An error has occurred." }

The other API endpoints are working fine. Anything I am missing out? Any help is appreciated.

EricAtMSFT commented 8 years ago

Please double check your Azure Storeage configs and make sure your Azure storage name and key are correct. See this file:

https://github.com/Microsoft/Appsample-Photosharing/blob/master/PhotoSharingApp/PhotoSharingApp.AppService.Shared/Context/EnvironmentDefinition.cs

Your StorageAccessKey should be a long string that ends with a "==". Can you check?

nor0x commented 8 years ago

Thank you for the answer. StorageAccessKey and StorageAccountName should be set correctly. I tried both keys created by Azure.

screenshot029348
nor0x commented 8 years ago

I found the error! I was using the latest version of the WindowsAzure.Storage NuGet package (7.2.0) - after a downgrade to 7.1.2 everything is working fine. Thank you! my bad - closed