1

I am setting up OrderCloud headstart environment on my local machine following this documentation: https://github.com/ordercloud-api/headstart

While Seeding OrderCloud Data using /seed endpoint in postman, I am getting the below error:

{
    "Errors": [
        {
            "ErrorCode": "InternalServerError",
            "Message": "Unknown error has occured.",
            "Data": "Unable to resolve service for type 'Headstart.API.Commands.SupplierSync.ISupplierSyncCommand' while attempting to activate 'Headstart.API.Commands.HsSupplierCommand'."
        }
    ]
}

I have provided all required parameters during post call. I have referred to this template body. https://github.com/ordercloud-api/headstart/blob/development/src/Middleware/src/Headstart.Common/Assets/SeedTemplate.json

enter image description here

Any help is much appreciated.

1 Answer 1

4

Please try to inject ".Inject<ISupplierSyncCommand>()" in "headstart-development\src\Middleware\src\Headstart.API\Startup.cs" file.

enter image description here

It might fix this error.

1
  • Thanks, this solved the issue. Commented Apr 29, 2022 at 15:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.