Unable To create event using cookie #726
Replies: 2 comments 2 replies
-
Hi team, Thank you. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @vinukumar-vs
this end point in whitelistApis.js but still getting the Unauthorized issue |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am encountering an "Unauthorized" error when calling the api/event/v4/create API and passing the cookie in the headers. However, the request succeeds when using a Bearer token. Any assistance in resolving this issue would be greatly appreciated.
CURL:
curl --location '-------/api/event/v4/create'
--header 'Accept: application/json, text/plain, /'
--header 'Accept-Language: en-US,en;q=0.9'
--header 'Connection: keep-alive'
--header 'Content-Type: application/json'
--header 'Cookie: -------
--header 'Origin: --------'
--header 'Referer: ---------/workspace/add/event'
--header 'Sec-Fetch-Dest: empty'
--header 'Sec-Fetch-Mode: cors'
--header 'Sec-Fetch-Site: same-origin'
--header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36'
--header 'sec-ch-ua: "Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"'
--header 'sec-ch-ua-mobile: ?0'
--header 'sec-ch-ua-platform: "Linux"'
--data '{
"request": {
"event": {
"name": "DemoEvent",
"eventType": "Online",
"description": "description",
"code": "11",
"onlineProvider": "Google Meet",
"eventVisibility": "Public",
"language": [
"English"
],
"source": "sdasd",
"startDate": "2024-06-07",
"startTime": "15:30:10+05:30",
"endDate": "2024-06-21",
"endTime": "16:30:10+05:30",
"registrationStartDate": "2024-06-07",
"registrationEndDate": "2024-06-08",
"onlineProviderData": {},
"venue": {},
}
response:
{
"message": "Unauthorized"
}
@rajeevsathish @AmiableAnil @rajeevsathish
Beta Was this translation helpful? Give feedback.
All reactions