Skip to content

ERROR #4

@Kledki

Description

@Kledki

def get_papers(
ids,
fields=['corpusId', 'title', 'abstract', 'year', 'publicationDate', 'referenceCount', 'citationCount', 'embedding.specter_v2'],
batch_size=100
):
response = flatten_list([
post_request(
'https://api.semanticscholar.org/graph/v1/paper/batch',
headers=headers,
params={'fields': ','.join(fields)},
json={"ids": ids_batched}
)
for ids_batched in batched(ids, batch_size)
])
return response

When executing the code, an error occurred.
Note: I am using the proxy API, but during execution, it consistently returns a "Server Error: Internal Server Error for URL."
This happens regardless of whether I use the paper's corpus ID that I entered myself or the one used for debugging in the original source code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions