openai.error.InvalidRequestError: Expected file to have JSONL format, where every line is a JSON dictionary. Line 1 is not a dictionary

Solved.
I called with

file="mydata.jsonl" 

instead of:

file=open("mydata.jsonl"),
5 Likes