NullConstraintViolationException when a call is made to OCAPI endpoint /customers/auth for JWT #440
redz0701
started this conversation in
Team Posts
Replies: 2 comments
-
Hi Rohit,
I have tried the Customer Oauth call by adding the type: guest in the
header and I am getting the same error as follows
{
"_v": "18.8",
"fault": {
"arguments": {
"parameter": "Body"
},
"type": "NullConstraintViolationException",
"message": "The null value constraint for parameter 'Body' was
violated. Null isn't allowed. Please provide a value."
}
}
So, to get the JWT token you need to add the *type: guest* in the body of
the request.
Please try it and let me know.
Request Body as follows:
{
"type" : "guest"
}
Regards,
Anand
…On Wed, Jul 24, 2019 at 9:23 AM RohitReddyThaduvai ***@***.***> wrote:
Hi All,
I am getting *NullConstraintViolationException* when trying to get JWT
using
*POST https://hostname:port/dw/shop/vx_x/customers/auth?client_id=xxxx
<https://hostname:port/dw/shop/vx_x/customers/auth?client_id=xxxx>*
Also passing type: guest in the header.
Error:
"type": "NullConstraintViolationException",
"message": "The null value constraint for parameter 'Body' was violated.
Null isn't allowed. Please provide a value."
Any help is appreciated.
Thanks in Advance.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/orgs/SalesforceCommerceCloud/teams/community/discussions/91?email_source=notifications&email_token=ALSSVVHFDTJZE7YFCCZN5ITQA7G45A5CNFSM4IGL4TB2YY3PNVWWK3TUL52HS4DFVZCGS43DOVZXG2LPNZIG643UVJRW63LNMVXHIX3JMTHAAAJCKM>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALSSVVAHFPJGHM6MTVXVCY3QA7G45ANCNFSM4IGL4TBQ>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, Anand. It worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I am getting NullConstraintViolationException when trying to get JWT using
POST https://hostname:port/dw/shop/vx_x/customers/auth?client_id=xxxx
Also passing type: guest in the header.
Error:
"type": "NullConstraintViolationException",
"message": "The null value constraint for parameter 'Body' was violated. Null isn't allowed. Please provide a value."
Any help is appreciated.
Thanks in Advance.
Beta Was this translation helpful? Give feedback.
All reactions