Hey everyone. I am self-hosting and trying to fini...
# talk-kratos
m
Hey everyone. I am self-hosting and trying to finish setup with google sign-in, I have everything showing up as it should. But it is throwing this error. Any thoughts?
Copy code
{
  "id": "blah blah blah ",
  "error": {
    "code": 500,
    "status": "Internal Server Error",
    "message": "RUNTIME ERROR: Field does not exist: given_name\n\<tbase64://bG9jYWwgY2xhaW1zID0gewogIGVtYWlsX3ZlcmlmaWVkOiB0cnVlLAp9ICsgc3R>kLmV4dFZhcignY2xhaW1zJyk7Cgp7CiAgaWRlbnRpdHk6IHsKICAgIHRyYWl0czogewogICAgICBbaWYgJ2VtYWlsJyBpbiBjbGFpbXMgJiYgY2xhaW1zLmVtYWlsX3ZlcmlmaWVkIHRoZW4gJ2VtYWlsJyBlbHNlIG51bGxdOiBjbGFpbXMuZW1haWwsCiAgICAgIGZpcnN0X25hbWU6IGNsYWltcy5naXZlbl9uYW1lLAogICAgICBsYXN0X25hbWU6IGNsYWltcy5mYW1pbHlfbmFtZSwKICAgICAgW2lmICdoZCcgaW4gY2xhaW1zICYmIGNsYWltcy5lbWFpbF92ZXJpZmllZCB0aGVuICdoZCcgZWxzZSBudWxsXTogY2xhaW1zLmhkLAogICAgfSwKICB9LAp9:9:19-36\tobject <anonymous>\n\tField \"first_name\"\t\n\tField \"traits\"\t\n\tField \"identity\"\t\n\tDuring manifestation\t\n"
  },
  "created_at": "2023-01-11T19:31:11.734338Z",
  "updated_at": "2023-01-11T19:31:11.734338Z"
}
p
Is the
\n\t
embedded in the
given_name
portion of you jsonnet?
m
That's coming from
mapper_url
its base 64 encoded. It just returning like that
Copy code
mapper_url: "<base64://bG9jYWwgY2xhaW1zID0gewogIGVtYWlsX3ZlcmlmaWVkOiB0cnVlLAp9ICsgc3R>kLmV4dFZhcignY2xhaW1zJyk7Cgp7CiAgaWRlbnRpdHk6IHsKICAgIHRyYWl0czogewogICAgICBbaWYgJ2VtYWlsJyBpbiBjbGFpbXMgJiYgY2xhaW1zLmVtYWlsX3ZlcmlmaWVkIHRoZW4gJ2VtYWlsJyBlbHNlIG51bGxdOiBjbGFpbXMuZW1haWwsCiAgICAgIGZpcnN0X25hbWU6IGNsYWltcy5naXZlbl9uYW1lLAogICAgICBsYXN0X25hbWU6IGNsYWltcy5mYW1pbHlfbmFtZSwKICAgICAgW2lmICdoZCcgaW4gY2xhaW1zICYmIGNsYWltcy5lbWFpbF92ZXJpZmllZCB0aGVuICdoZCcgZWxzZSBudWxsXTogY2xhaW1zLmhkLAogICAgfSwKICB9LAp9"
p
given name may be an array. I have
claims.given_name[0]
in mine.
Ignore that.
What do you see if you dump the incoming claims?
m
Funny, I ended up changing that identity schema from the default one that was provided in ory Kratos for google. I switched it to the identity schema, that I've used for the main identity schema. The only issue is that it's not picking up on my email. Saying the property email is missing. @plain-lunch-50969
d
@many-alligator-19004 Did you figure this out? I'm facing the same error
Submitted a bug report, it seems to be something with Ory Elements https://github.com/ory/elements/issues/93