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

Bug: Error When Creating Edge Device Model in Portal #2675

Closed
TLeoDev opened this issue Dec 1, 2023 · 0 comments
Closed

Bug: Error When Creating Edge Device Model in Portal #2675

TLeoDev opened this issue Dec 1, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@TLeoDev
Copy link
Member

TLeoDev commented Dec 1, 2023

Expected Behavior

When creating an Edge device model in the portal, once you have provided the information required for the device model and its associated modules, it should be created in the base and displayed in the list.

Current Behavior

An error occurs when attempting to create an Edge Device Model.
The specific error message is :
POST https://localhost:8001/api/edge/models 422 (Unprocessable Content)" indicating a validation issue. The network tab in the browser's developer tools shows the error details: {"type":"https://httpstatuses.io/422","title":"One or more validation errors occurred.","status":422,"traceId":"00-f2cc2baa432a291632270d2929c4dde4-21048cd8b505e3b6-00","errors":{"EdgeModules[0].Version":["The component version is required."]}

Steps to Reproduce

  1. Navigate to the Edge Device Model creation page on the IoT Hub Portal.
  2. Fill in the following fields for the Edge Device Model:
  • Name: "EdgeTEST"
  • Description: "test"
  • System Modules:
    -- Edge Agent: (name: "edgeAgent", imageURI: "mcr.microsoft.com/azureiotedge-agent:1.1", containerCreateOption left empty)
    -- Edge Hub: (name: "edgeHub", imageURI: "mcr.microsoft.com/azureiotedge-hub:1.1", containerCreateOption: {"HostConfig":{"PortBindings":{"5671/tcp":[{"HostPort":"5671"}],"8883/tcp":[{"HostPort":"8883"}],"443/tcp":[{"HostPort":"443"}]}}})
  • Modules:
    -- Name: "TestModule1"
    -- imageURI: "mcr.microsoft.com/azureiotedge-simulated-temperature-sensor:1.0"
  1. Click the submit button to create the Edge Device Model.
    ** Browser : Microsoft Edge**
    ** Operating System: Windows 10**

Additional Information

image
image
image

@TLeoDev TLeoDev added the bug Something isn't working label Dec 1, 2023
@github-project-automation github-project-automation bot moved this to 📝 Todo in IoT Hub Portal Dec 1, 2023
@TLeoDev TLeoDev self-assigned this Dec 1, 2023
@kbeaugrand kbeaugrand moved this from 📝 Todo to 🚧 In Progress in IoT Hub Portal Dec 4, 2023
@kbeaugrand kbeaugrand moved this from 🚧 In Progress to 💬 Ready for Review in IoT Hub Portal Dec 4, 2023
@kbeaugrand kbeaugrand moved this from 💬 Ready for Review to 🚧 In Progress in IoT Hub Portal Dec 4, 2023
TLeoDev pushed a commit that referenced this issue Dec 5, 2023
@TLeoDev TLeoDev moved this from 🚧 In Progress to 💬 Ready for Review in IoT Hub Portal Dec 5, 2023
@kbeaugrand kbeaugrand moved this from 💬 Ready for Review to 🚀 Ready in IoT Hub Portal Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🚀 Ready
Development

No branches or pull requests

2 participants