Skip to content

Click "Version history" shows Server Error(500) #1760

@YanceyOfficial

Description

@YanceyOfficial

Bug Report

Problematic behavior

Image

When I click the "Version history" button, it opens the version history modal, but the API shows that it doesn't pass the version_id parameter. I found where the code is defined; maybe the pageParam caused this problem?

const getDocVersions = async ({
  versionId,
  docId,
}: DocVersionsAPIParams): Promise<VersionsResponse> => {
  const url = `documents/${docId}/versions/?version_id=${versionId}`;

  const response = await fetchAPI(url);

  if (!response.ok) {
    throw new APIError(
      'Failed to get the doc versions',
      await errorCauses(response),
    );
  }

  return response.json() as Promise<VersionsResponse>;
};
Image

Environment

  • Docs version: I just deployed last night.
  • Instance url:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions