Skip to content

Commit

Permalink
fix: too long queries sent as GET
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Oct 17, 2024
1 parent 5e6e9a6 commit eb83409
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cold-grapes-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cube-creator/shared-dimensions-api": patch
---

Querying hierarchies could cause `414 (URI Too Long)` error (re #1544)
4 changes: 3 additions & 1 deletion apis/shared-dimensions/lib/domain/shared-dimensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export async function getSharedTerms<C extends StreamClient | ParsingClient>({ s
}

const { constructQuery } = await shapeToQuery()
return constructQuery(shape).execute(client) as any
return constructQuery(shape).execute(client, {
operation: 'postDirect',
}) as any

Check warning on line 91 in apis/shared-dimensions/lib/domain/shared-dimensions.ts

View check run for this annotation

Codecov / codecov/patch

apis/shared-dimensions/lib/domain/shared-dimensions.ts#L89-L91

Added lines #L89 - L91 were not covered by tests
}

async function loadShape(shape: string) {
Expand Down

0 comments on commit eb83409

Please sign in to comment.