Skip to content

RSSHub Transform JSON not accepting number as itemLink #21997

@LunyaaDev

Description

@LunyaaDev

Routes

/rsshub/transform/json/:url/:routeParams

Full routes

/rsshub/transform/json/https%3A%2F%2Fapi.cross-7.de%2Fpublic%2Fnews%2F321%2Farticles/title=Aktuelle%20Bekanntmachungen&item=items&itemTitle=name&itemLink=link.slug&itemLinkPrefix=https%3A%2F%2Fwww.gemeinde-altheim.de%2Fgemeinde-altheim%2Faktuelles%2Fnews%3Fc7-item%3D&itemDesc=teaserText&itemPubDate=created

Related documentation

https://docs.rsshub.app/routes/rsshub#rsshub-transform-json-url-routeParams

What is expected?

Feed should load

Value could be converted to String before .trim()

let link = jsonGet(item, routeParams.get('itemLink')).trim();

What is actually happening?

Feed is erroring

Deployment information

Self-hosted

Deployment information (for self-hosted)

OS: Debian 13; Docker 29.4.2; Image: diygod/rsshub:chromium-bundled SHA: e16ef1d7f543

Additional info

Helpful Information

Error Message:
TypeError: i(...).trim is not a function

Route: /rsshub/transform/json/:url/:routeParams

Full Route: /rsshub/transform/json/https%3A%2F%2Fapi.cross-7.de%2Fpublic%2Fnews%2F321%2Farticles/title=Aktuelle Bekanntmachungen&item=items&itemTitle=name&itemLink=link.targetId&itemLinkPrefix=https%3A%2F%2Fwww.gemeinde-altheim.de%2Fgemeinde-altheim%2Faktuelles%2Fnews%3Fc7-item%3D&itemDesc=teaserText&itemPubDate=created

This is not a duplicated issue

  • I have searched existing issues to ensure this bug has not already been reported

Metadata

Metadata

Assignees

No one assigned

    Labels

    RSS bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions