Skip to content

Commit

Permalink
Adjust mapping request to fix 502 server errors with long requests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Aug 13, 2024
1 parent 062f9bc commit 9e15efe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ async function getMappingsForSubjects(subjects) {
const
toScheme = state.schemes.map(s => s.uri).join("|"),
cardinality = "1-to-1",
configs = [],
maxLength = 600 // Prevent URL length issues
configs = [],
limit = 500,
maxLength = 400 // Prevent URL length issues (very conservative value)
let current = []
for (const subject of subjects.concat(null)) {
Expand All @@ -177,6 +178,7 @@ async function getMappingsForSubjects(subjects) {
toScheme,
cardinality,
direction,
limit,
})
})
}
Expand Down

0 comments on commit 9e15efe

Please sign in to comment.