I\'m getting this from a JSON file when I try to upload to an API, if i manually upload the file it works fine but it I pass the file into the snippet below and pass the pay