ConsumerDataRight / mock-data-holder

A mock version of a Consumer Data Right Data Holder solution that can be used in the development and testing of CDR solutions
MIT License
17 stars 23 forks source link

Software Product Not Available #52

Closed schafer14 closed 1 year ago

schafer14 commented 1 year ago

Describe the bug

I am receiving a 400 when hitting the PAR endpoint in the mock data holder:

{"error":"invalid_request","error_description":"Software Product Status is invalid"}

The logs are mentioning the software product is not available, but I run DCR immediately before the PAR.

To Reproduce Steps to reproduce the behavior:

  1. Start the mock-register and mock-data-holder with docker compose and seed data (truncated) for my environment.
  2. Do everything required to get a client id with the mock data holder.
  3. Hit the par endpoint with my client assertions.
  4. See error

Expected behaviour

I don't think I should see an error?!

Additional context

I can hit the GET registration/{id} endpoint, so I assume my product should be active and available.

I can also get successful responses from the data recipients status endpoint.

CDR-AndrewG commented 1 year ago

Hi @schafer14,

Thank you for logging this issue.

Can you try keeping the record with "SoftwareProductId": "c6327f87-687a-4369-99a4-eaacd3bb8210" in your truncated seed data?

This Software Product represents the mock-data-recipient repository and docker container. The default settings that go into the docker container can be seen here.

Let us know if that helps.

schafer14 commented 1 year ago

Hi @CDR-AndrewG,

Yep works perfectly. Thanks.