Skip to content

Bug - making graphql endpoint the default API URL breaks Image component #173

@JamesBock

Description

@JamesBock

Using the graphql endpoint as the default API endpoint will cause the Image component to use the wrong url and return 404 for all images because this component calls the REST /image endpoint.

REACT_APP_API_URL: https://api.dev.tenantfile.org/graphql

Remedies (not necessarily mutually exclusive):

  1. Drop graphql from env URL and add it to gql query URLs
  2. Fetch images from the client - Currently, image names are fetched via gql from the server, then the client is passing the names to the server again to the REST endpoint where the server accesses Google Cloud Storage then passes the image to the client. Fetching the images directly on the client seems like a much simpler solution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions