• Agnès Le Roux
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
While creating the dataset in the Einstein Intent API basics trailhead. I use the command line
curl -X POST -H "Authorization: Bearer ZWZDZ...C26QDVU6ASQ" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "type=text-intent" -F "path=http://einstein.ai/text/case_routing_intent.csv" https://api.einstein.ai/v2/language/datasets/upload
I got the following message error:

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.


The token I provided comes from https://api.einstein.ai/token and is still valid.
I am on Windows10.
Do you have any idea of what is wrong?

Thanks in advance!
Hi All,

Trying to create a dataset as described but keep getting an error :(
When I use cURL it keeps comming back with invalid scheme

curl -X POST -H "Authorization: Bearer -----BEGIN RSA PRIVATE KEY-----MIIEowIBAAKCAQEA...U+Li+uIvLNJoZkJhlwCLqAACXo4t/TNzwDeGsoSUmOgDjDQKBgC2+mYqJJg9tQ7cjMCQliPy7XMTDiTYN3BNEGX6C3LGLWois8Sf+IUdrB6FOE5e+Gkg9ZyvlskihVGW/Phsk4lTTuHX0xfnmqABZ60QMIkqqszvTuS7HND+0rOBbgxJc9WrHO2qHTI92GRSAH1ciQNhrzxDBOYji0CPclqm4CETi-----END RSA PRIVATE KEY-----" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "type=text-intent" -F "path=http://einstein.ai/text/case_routing_intent.csv" https://api.einstein.ai/v2/language/datasets/upload

{"message":"Invalid authentication scheme"}


Also when using Postman, the same error occurs...

User-added image

Anyone an idea what I do wrong??

Regards,
Jos
I am trying the new Einstein Intent API basics module. One of the units directs us to download cURL and then in 'Create the Dataset' we are to use the following command to load the .csv file:

curl -X POST -H "Authorization: Bearer <TOKEN>" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "type=text-intent" -F "path=http://einstein.ai/text/case_routing_intent.csv" https://api.einstein.ai/v2/language/datasets/upload

This results in a message stating curl is not recognized as a command. If I change the " to ' as suggested in the unit, I get a message stating the file can't be found.