just spent 3 hours debugging and it was a stupid trailing slash in the api endpoint. who needs a social life anyway