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

Failed to load device #102

Closed
kbeaugrand opened this issue Jan 26, 2022 · 1 comment
Closed

Failed to load device #102

kbeaugrand opened this issue Jan 26, 2022 · 1 comment
Labels
bug Something isn't working more-info-needed
Milestone

Comments

@kbeaugrand
Copy link
Member

We are facing an issue when going to the device detail page.

@kbeaugrand kbeaugrand added the bug Something isn't working label Jan 26, 2022
@kbeaugrand kbeaugrand added this to the S8 milestone Jan 26, 2022
@kbeaugrand
Copy link
Member Author

The web console show :

blazor.webassembly.js:1 
        
       crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: DeserializeUnableToConvertValue, AzureIoTHub.Portal.Shared.Models.DeviceModel Path: $ | LineNumber: 0 | BytePositionInLine: 1.
System.Text.Json.JsonException: DeserializeUnableToConvertValue, AzureIoTHub.Portal.Shared.Models.DeviceModel Path: $ | LineNumber: 0 | BytePositionInLine: 1.
   at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type )
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1[[AzureIoTHub.Portal.Shared.Models.DeviceModel, AzureIoTHub.Portal.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnTryRead(Utf8JsonReader& , Type , JsonSerializerOptions , ReadStack& , DeviceModel& )
   at System.Text.Json.Serialization.JsonConverter`1[[AzureIoTHub.Portal.Shared.Models.DeviceModel, AzureIoTHub.Portal.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].TryRead(Utf8JsonReader& , Type , JsonSerializerOptions , ReadStack& , DeviceModel& )
   at System.Text.Json.Serialization.JsonConverter`1[[AzureIoTHub.Portal.Shared.Models.DeviceModel, AzureIoTHub.Portal.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].ReadCore(Utf8JsonReader& , JsonSerializerOptions , ReadStack& )
   at System.Text.Json.JsonSerializer.ReadCore[DeviceModel](JsonConverter , Utf8JsonReader& , JsonSerializerOptions , ReadStack& )
   at System.Text.Json.JsonSerializer.ReadCore[DeviceModel](JsonReaderState& , Boolean , ReadOnlySpan`1 , JsonSerializerOptions , ReadStack& , JsonConverter )
   at System.Text.Json.JsonSerializer.ContinueDeserialize[DeviceModel](ReadBufferState& , JsonReaderState& , ReadStack& , JsonConverter , JsonSerializerOptions )
   at System.Text.Json.JsonSerializer.<ReadAllAsync>d__65`1[[AzureIoTHub.Portal.Shared.Models.DeviceModel, AzureIoTHub.Portal.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext()
   at System.Net.Http.Json.HttpContentJsonExtensions.<ReadFromJsonAsyncCore>d__4`1[[AzureIoTHub.Portal.Shared.Models.DeviceModel, AzureIoTHub.Portal.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext()
   at System.Net.Http.Json.HttpClientJsonExtensions.<GetFromJsonAsyncCore>d__13`1[[AzureIoTHub.Portal.Shared.Models.DeviceModel, AzureIoTHub.Portal.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext()
   at AzureIoTHub.Portal.Client.Pages.Devices.DeviceDetailPage.OnInitializedAsync()
   at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task , ComponentState )

kbeaugrand added a commit that referenced this issue Jan 26, 2022
kbeaugrand added a commit that referenced this issue Jan 26, 2022
* fix #102 - Check if device model is present before requesting the current device model (#105)

* AppEUI field set as ReadOnly on DeviceDetailPage

Co-authored-by: Kevin BEAUGRAND <9513635+kbeaugrand@users.noreply.github.com>
audserraCGI added a commit that referenced this issue Jan 27, 2022
…115)

* fix #102 - Check if device model is present before requesting the current device model (#105)

* Fix code scanning alert - Missing Dispose call on local IDisposable

Co-authored-by: Kevin BEAUGRAND <9513635+kbeaugrand@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more-info-needed
Projects
Status: No status
Development

No branches or pull requests

1 participant