You need to sign in to do that
Don't have an account?
sumit d
invalid Access token in einstien
Hi All,
i have a zip file named Fruits in my device in download folder.when i execute the command its showing invalid Access token
C:\>curl -X POST -H "Authorization: Bearer <JAJ2VY4FFSNPA4XNYJDUUSUEUHEMNO5QUGES2EVJARUKAHEAHECUBNCMYJFXSOHOVTG2OLX3QCYZ34VBOSE3GKU3GBTERVDGBIYJYZQ>" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "type=text-intent" -F "path=http://einstein.ai/text/Fruits.zip" https://api.einstein.ai/v2/language/datasets/upload
{"message":"Invalid access token"}
how to overcome this issue Any suggestions?
i have a zip file named Fruits in my device in download folder.when i execute the command its showing invalid Access token
C:\>curl -X POST -H "Authorization: Bearer <JAJ2VY4FFSNPA4XNYJDUUSUEUHEMNO5QUGES2EVJARUKAHEAHECUBNCMYJFXSOHOVTG2OLX3QCYZ34VBOSE3GKU3GBTERVDGBIYJYZQ>" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "type=text-intent" -F "path=http://einstein.ai/text/Fruits.zip" https://api.einstein.ai/v2/language/datasets/upload
{"message":"Invalid access token"}
how to overcome this issue Any suggestions?
Greetings to you!
You see this error if your token has expired. If you get this error in the code, you’ll need to increase the expiration time or add code to refresh the token. If you generated the token from our page, go there to upload your key and generate a new token.
Please refer to below links which can help you further.
https://help.salesforce.com/articleView?id=000250225&type=1
https://trailhead.salesforce.com/en/content/learn/modules/einstein_intent_basics/einstein_intent_basics_env
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks and Regards,
Khan Anas
the token is not expired but its still giving me error. i am using command prompt
Any suggestions?
I am also facing the same issue. If you have found the solution, please let me know.
Thanks in advance.
which editor r u using?
try it with postman. with regenerating the token
Thanks.
Hi,
I am also facing the same issue.
curl -X POST -H "Authorization: Bearer CdS4OSsi30DKyGWRbJVpFYOb" -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 access token"}
I tried with postman and I have the same error.
If you have found the solution, please let me know.
Many thanks,
Sylvain