Why is the API returning an "Invalid source" error message?