refly-ai / refly-ai/refly

template url generated error

Open
#662 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.5k
Forks
729
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Refly generate wrong template thumbnail image url

Image Image

The image src url start 'undefined', which is wrong.

The wrong URL

https://refly.example.com/canvas/undefined/share-cover/can-dx050jn7gr46amvwuge69kso.png

This URL is correct after replace the base domain to api domain

https://reflyapi.example.com/v1/misc/public/share-cover/can-dx050jn7gr46amvwuge69kso.png

log:

2025/04/02 01:37:50 [error] 8#8: *133 open() "/usr/share/nginx/html/canvas/undefined/share-cover/can-vlzquvm1prq22fbuq2rzbzi5.png" failed (2: No such file or directory), client: 10.0.1.249, server: localhost, request: "GET /canvas/undefined/share-cover/can-vlzquvm1prq22fbuq2rzbzi5.png HTTP/1.1", host: "refly.example.com"

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the code that generates the template thumbnail or share-cover image URL, then compare its output with the incorrect URL and the API URL shown in the issue. Reproduce the request using the provided paths and confirm that the generated URL uses the API endpoint without an undefined segment.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.