Skip to content

CSV Edition - "Invalid CSV Line" error #14

@shubhamsaini

Description

@shubhamsaini

I am trying to post a CSV file using cURL. Following are the contents of the file:
5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378029600,34
5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378031400,34
5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378033200,34

Command I am using:
curl -XPOST -d @testupload.csv -H "Content-Type: text/csv" http://hostname.com/add/key

Error:
Invalid CSV line: 5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378
029600,345dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378031400,34
5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378033200,34

Any idea what might be wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions