- Issue created by @afagioli
- 🇺🇸United States TolstoyDotCom L.A.
I haven't tried this recently, but I didn't have to do any setup to see a problem: https://www.drupal.org/project/bat_api/issues/3411329#comment-15384506 🐛 With Drupal 10.2.0 the rest api doesn't return a valid json Needs work
Per https://www.drupal.org/project/drupal/issues/3432990 🐛 Content-length incorrect and response truncated in web servers Active it might be a webserver issue, but Carlitus is running Nginx, while I'm using Apache2 so maybe it's a generic problem with the content length or similar.
- 🇪🇸Spain Carlitus
It seems like a core thing, but I understand that it must be something that happens to almost no one, because there would have to be a lot more people talking about this.
The endpoint:
/bat_api/calendar-units?_format=json&types=7&ids=&event_type=availability_hourly&_=1711364361712Without the patch:
With the patch ( https://www.drupal.org/project/drupal/issues/3432990 🐛 Content-length incorrect and response truncated in web servers Active ):
I have put screenshots to simplify this comment, but I can put the code that returns the endpoint.
- 🇮🇹Italy afagioli Rome
On my side:
view-source:http://d10.bat/bat_api/calendar-units?_format=json&types=1&ids=&event_ty...
gives a correct JSON:
[{"id":"1","title":"Apts Property #1","children":[{"id":"S1","title":"apt 1","create_event":true},{"id":"S2","title":"apt b","create_event":true}]}]
- 🇮🇹Italy afagioli Rome
I'd suggest to dismember the beast (issue) in smaller pieces
- Status changed to Closed: works as designed
7 months ago 6:47am 17 April 2024