pondersource / prejournal

An experimental bookkeeping tool that sits between source documents and journals
https://prejournal.org
MIT License
2 stars 2 forks source link

500 error on time-pondersource-com #155

Closed michielbdejong closed 1 year ago

michielbdejong commented 1 year ago
curl -i -d'["test"]'  https://evoludata:***@time.pondersource.com/v1/print-timesheet-json
HTTP/1.1 500 Internal Server Error
Date: Thu, 01 Sep 2022 04:50:29 GMT
michielbdejong commented 1 year ago
heroku logs --app=time-pondersource-com
[...]
[01-Sep-2022 04:50:29 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /app/src/platform.php:149
ishifoev commented 1 year ago

@michielbdejong I see what is the problem

michielbdejong commented 1 year ago

Ah yes, I think it's because print-timesheet-json returns a string instead of an array of strings. I think I fixed it now.

ishifoev commented 1 year ago

@michielbdejong Yes, but I did it in the same time that you in my PR, ok.