Ghost: `fields=url` return 404 error

Created on 21 Aug 2019  路  5Comments  路  Source: TryGhost/Ghost

Issue Summary

All URLs from post's API are /404/ if url specified in fields field.

To Reproduce

Get some data from post's API:

&fields=url would return correct url
&fields=url,title would return 404

Adding an id temporarily fixes issue:

&fields=url,title,id would return correct url

Technical details:

  • Ghost Version: 2.29.0
  • Node Version: 10.13.0
  • Database: sqlite3
api bug

All 5 comments

@fueko do you have a custom routes.yaml file?

I think this is a regression but needs to be verified.

@ErisDS I don't have. I installed a completely new installation (localhost), added the API key - the problem still appears. I checked - and the problem starts with version 2.28.1

@ErisDS Look at demo.ghost.io

馃憢 Hi @fueko, thanks for reporting the issue. Can confirm this is a regression and the bug was introduced in 2.28.1 release as you mentioned. We are working on a fix for this and will release it asap.

@fueko This has now been fixed and released in latest version (2.29.1), thanks again for reporting. 馃槃

Was this page helpful?
0 / 5 - 0 ratings