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

Sort in CosmosDB Mongo APIs mandates indexing #151

Open
iamsethi opened this issue Feb 8, 2023 · 2 comments
Open

Sort in CosmosDB Mongo APIs mandates indexing #151

iamsethi opened this issue Feb 8, 2023 · 2 comments
Labels
status: blocked Something's in the way type: bug
Milestone

Comments

@iamsethi
Copy link

iamsethi commented Feb 8, 2023

Expected behaviour

Pa11y dashboard should be able to integrate with Azure Cosmos DB for MongoDB

Actual behaviour

[model:task:getAll failed
Error=2, Details='Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: db9c9b1c-6eb2-43d9-8422-0df2991f8822; Reason: (Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: db9c9b1c-6eb2-43d9-8422-0df2991f8822; Reason: (Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: db9c9b1c-6eb2-43d9-8422-0df2991f8822; Reason: (Message: {"Errors":["The order by query does not have a corresponding composite index that it can be served from."]}
ActivityId: db9c9b1c-6eb2-43d9-8422-0df2991f8822, Request URI: /apps/d76a7012-7f63-444d-b353-8a54be2d58d5/services/f84105c4-7e32-44bf-9ebf-abc37440863d/partitions/771dbbb2-eae7-45cf-bc90-14f8bc3e5295/replicas/133203351083477204s/, RequestStats: Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, SDK: Windows/10.0.17763 cosmos-netstandard-sdk/3.18.0);););

Error: Error 500
    at Request._callback (C:\Users\80992798\pa11y-dashboard\node_modules\pa11y-webservice-client-node\lib\client.js:124:16)
    at Request.self.callback (C:\Users\80992798\pa11y-dashboard\node_modules\request\request.js:185:22)
    at Request.emit (events.js:315:20)
    at Request.<anonymous> (C:\Users\80992798\pa11y-dashboard\node_modules\request\request.js:1154:10)
    at Request.emit (events.js:315:20)
    at IncomingMessage.<anonymous> (C:\Users\80992798\pa11y-dashboard\node_modules\request\request.js:1076:12)
    at Object.onceWrapper (events.js:421:28)
    at IncomingMessage.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)](url)

Steps to reproduce

Connect to cosmos DB by azure

@danyalaytekin
Copy link
Member

Hey @iamsethi, thanks for your report. I know it's been a while but did you manage to find a fix, or get closer to one?

For now I'll move this to pa11y-webservice's issues as that's where the problem seems to be.

pa11y-dashboard uses pa11y-webservice-client-node to speak to pa11y-webservice which speaks to MongoDB.

@danyalaytekin danyalaytekin transferred this issue from pa11y/pa11y Nov 10, 2023
@danyalaytekin
Copy link
Member

Will revisit once the issue described here has been resolved, since this will be the way to test any work, as far as I can tell:

@danyalaytekin danyalaytekin added this to the 5.x milestone Mar 18, 2024
@danyalaytekin danyalaytekin added the status: blocked Something's in the way label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: blocked Something's in the way type: bug
Projects
None yet
Development

No branches or pull requests

2 participants