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

InternalLibraryError for a facilities C1 #193

Open
lukehesluke opened this issue Apr 25, 2022 · 0 comments
Open

InternalLibraryError for a facilities C1 #193

lukehesluke opened this issue Apr 25, 2022 · 0 comments

Comments

@lukehesluke
Copy link
Contributor

We host an instance of OpenActive.NET, and have recently found that a C1 call, which previously worked, has stopped working. Here's the request (with the base URL stubbed out):

PUT <BASE_URL>/api/openbooking/order-quote-templates/2f792e86-0854-4b24-b567-06b160ef1437 HTTP/1.1

Content-Type: application/vnd.openactive.booking+json; version=1
X-OpenActive-Test-Client-Id: test
X-OpenActive-Test-Seller-Id: <BASE_URL>/api/identifiers/seller

{
  "@context": ["https://openactive.io/"],
  "type": "OrderQuote",
  "brokerRole": "https://openactive.io/AgentBroker",
  "broker": {
    "type": "Organization",
    "name": "imin"
  },
  "seller": "<BASE_URL>/api/identifiers/seller",
  "orderedItem": [{
    "type": "OrderItem",
    "position": 0,
    "acceptedOffer": "<BASE_URL>/api/identifiers/facility-uses/407/facility-use-slots/21925#/offers/0",
    "orderedItem": "<BASE_URL>/api/identifiers/facility-uses/407/facility-use-slots/21925"
  }]
}

The response:

{
  "@context": 'https://openactive.io/',
  "@type": 'InternalLibraryError',
  "description": 'The Opportunity @id within the response OrderItem must match the request OrderItem',
  "name": 'An unexpected exception has been thrown by an OpenActive SDK library or component.',
  "statusCode": 500
}

The Opportunity @id within the response OrderItem must match the request OrderItem - this implies that this is an issue within OpenActive.NET rather than a malformed request

@lukehesluke lukehesluke transferred this issue from openactive/OpenActive.NET Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant