Skip to content

Commit

Permalink
fix: update sri endpoint to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
ericz1803 committed Oct 9, 2021
1 parent 814338f commit fdc3ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function combineInputs(userInput: ResolverInput): string[] {
//input: array of curies
//handles querying and batching of inputs
async function query(api_input: string[]) {
let url: URL = new URL('https://nodenormalization-sri-dev.renci.org/1.1/get_normalized_nodes'); // TODO: change to non-dev version when ready
let url: URL = new URL('https://nodenormalization-sri.renci.org/1.2/get_normalized_nodes');

//SRI returns a 414 error if the length of the url query is greater than 65536, split into chunks of 1500 curies to be on the safe side (lower number if still running into 414 errors)
let chunked_input = _.chunk(api_input, 1500);
Expand Down

0 comments on commit fdc3ebb

Please sign in to comment.