colossal-airline-19852
11/25/2022, 10:56 AMfaint-insurance-61054
11/25/2022, 11:05 AMcolossal-airline-19852
11/25/2022, 11:29 AMfaint-insurance-61054
11/25/2022, 11:34 AMfaint-insurance-61054
11/25/2022, 11:35 AMfaint-insurance-61054
11/25/2022, 11:35 AMcolossal-airline-19852
11/25/2022, 11:42 AMcurl --location --request PUT '<http://127.0.0.1:4434/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc/>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "923dcc29-9ff2-473f-ac03-bd603c5082cc",
"schema_id": "default",
"schema_url": "<http://127.0.0.1:4433/schemas/ZGVmYXVsdA>",
"verifiable_addresses": [
{
"id": "bdcf18fa-5f18-43fc-a3d3-12ace86c139c",
"value": "<mailto:gowri@xyz.com|gowri@xyz.com>",
"verified": false
}
]
}'
colossal-airline-19852
11/25/2022, 11:44 AM{
"error": {
"code": 500,
"status": "Internal Server Error",
"message": "invalid character '}' looking for beginning of value"
}
}
faint-insurance-61054
11/25/2022, 11:45 AMfaint-insurance-61054
11/25/2022, 11:46 AMbland-eye-99092
11/25/2022, 11:48 AMfaint-insurance-61054
11/25/2022, 11:48 AMfaint-insurance-61054
11/25/2022, 11:49 AMcolossal-airline-19852
11/25/2022, 12:03 PMcurl --location --request PUT '<http://127.0.0.1:4434/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc/>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "923dcc29-9ff2-473f-ac03-bd603c5082cc",
"schema_id": "default",
"schema_url": "<http://127.0.0.1:4433/schemas/ZGVmYXVsdA>",
"verifiable_addresses": [
{
"id": "bdcf18fa-5f18-43fc-a3d3-12ace86c139c",
"value": "<mailto:gowri@xyz.com|gowri@xyz.com>",
"verified": false,
"via": "email",
"status": "sent"
}
]
}'
I have tried by adding status
and via
to payload, but it is the same error,
@bland-eye-99092 I have verified the JSON, it isn't malformed, I am not sure why response is like this
{
"error": {
"code": 500,
"status": "Internal Server Error",
"message": "invalid character '}' looking for beginning of value"
}
}
faint-insurance-61054
11/25/2022, 12:04 PMfaint-insurance-61054
11/25/2022, 12:05 PMlog:
level: info # trace | debug | info | warning | error | fatal | panic
faint-insurance-61054
11/25/2022, 12:05 PMcolossal-airline-19852
11/25/2022, 12:07 PMkratos-local-kratos-1 | time=2022-11-25T12:04:51Z level=error msg=An error occurred while handling a request func=<http://github.com/ory/x/logrusx.(*Logger).ReportError|github.com/ory/x/logrusx.(*Logger).ReportError> file=/go/pkg/mod/github.com/ory/x@v0.0.392/logrusx/logrus.go:228 audience=application error=map[message:invalid character '}' looking for beginning of value stack_trace:
kratos-local-kratos-1 | <http://github.com/ory/kratos/schema.(*Validator).Validate|github.com/ory/kratos/schema.(*Validator).Validate>
kratos-local-kratos-1 | /project/schema/validator.go:69
kratos-local-kratos-1 | <http://github.com/ory/kratos/identity.(*Validator).ValidateWithRunner|github.com/ory/kratos/identity.(*Validator).ValidateWithRunner>
kratos-local-kratos-1 | /project/identity/validator.go:51
kratos-local-kratos-1 | <http://github.com/ory/kratos/identity.(*Validator).Validate|github.com/ory/kratos/identity.(*Validator).Validate>
kratos-local-kratos-1 | /project/identity/validator.go:55
kratos-local-kratos-1 | <http://github.com/ory/kratos/identity.(*Manager).validate|github.com/ory/kratos/identity.(*Manager).validate>
kratos-local-kratos-1 | /project/identity/manager.go:160
kratos-local-kratos-1 | <http://github.com/ory/kratos/identity.(*Manager).Update|github.com/ory/kratos/identity.(*Manager).Update>
kratos-local-kratos-1 | /project/identity/manager.go:94
kratos-local-kratos-1 | <http://github.com/ory/kratos/identity.(*Handler).update|github.com/ory/kratos/identity.(*Handler).update>
kratos-local-kratos-1 | /project/identity/handler.go:475
kratos-local-kratos-1 | <http://github.com/ory/kratos/x.NoCacheHandle.func1|github.com/ory/kratos/x.NoCacheHandle.func1>
kratos-local-kratos-1 | /project/x/nocache.go:18
kratos-local-kratos-1 | <http://github.com/julienschmidt/httprouter.(*Router).ServeHTTP|github.com/julienschmidt/httprouter.(*Router).ServeHTTP>
kratos-local-kratos-1 | /go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387
kratos-local-kratos-1 | <http://github.com/urfave/negroni.Wrap.func1|github.com/urfave/negroni.Wrap.func1>
kratos-local-kratos-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:46
kratos-local-kratos-1 | <http://github.com/urfave/negroni.HandlerFunc.ServeHTTP|github.com/urfave/negroni.HandlerFunc.ServeHTTP>
kratos-local-kratos-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29
kratos-local-kratos-1 | <http://github.com/urfave/negroni.middleware.ServeHTTP|github.com/urfave/negroni.middleware.ServeHTTP>
kratos-local-kratos-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
kratos-local-kratos-1 | net/http.HandlerFunc.ServeHTTP
kratos-local-kratos-1 | /usr/local/go/src/net/http/server.go:2047
kratos-local-kratos-1 | <http://github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerResponseSize.func1|github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerResponseSize.func1>
kratos-local-kratos-1 | /go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:198
kratos-local-kratos-1 | net/http.HandlerFunc.ServeHTTP
kratos-local-kratos-1 | /usr/local/go/src/net/http/server.go:2047
kratos-local-kratos-1 | <http://github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1|github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1>
kratos-local-kratos-1 | /go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101
kratos-local-kratos-1 | net/http.HandlerFunc.ServeHTTP
kratos-local-kratos-1 | /usr/local/go/src/net/http/server.go:2047
kratos-local-kratos-1 | <http://github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func1|github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func1>
kratos-local-kratos-1 | /go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:68
kratos-local-kratos-1 | net/http.HandlerFunc.ServeHTTP
kratos-local-kratos-1 | /usr/local/go/src/net/http/server.go:2047
kratos-local-kratos-1 | <http://github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2|github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2>
kratos-local-kratos-1 | /go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:76
kratos-local-kratos-1 | net/http.HandlerFunc.ServeHTTP
kratos-local-kratos-1 | /usr/local/go/src/net/http/server.go:2047
kratos-local-kratos-1 | <http://github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerRequestSize.func1|github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerRequestSize.func1>
kratos-local-kratos-1 | /go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:165
kratos-local-kratos-1 | net/http.HandlerFunc.ServeHTTP
kratos-local-kratos-1 | /usr/local/go/src/net/http/server.go:2047
kratos-local-kratos-1 | <http://github.com/ory/x/prometheusx.Metrics.instrumentHandlerStatusBucket.func1|github.com/ory/x/prometheusx.Metrics.instrumentHandlerStatusBucket.func1>
kratos-local-kratos-1 | /go/pkg/mod/github.com/ory/x@v0.0.392/prometheusx/metrics.go:108
kratos-local-kratos-1 | net/http.HandlerFunc.ServeHTTP
kratos-local-kratos-1 | /usr/local/go/src/net/http/server.go:2047
kratos-local-kratos-1 | <http://github.com/ory/x/prometheusx.(*MetricsManager).ServeHTTP|github.com/ory/x/prometheusx.(*MetricsManager).ServeHTTP>
kratos-local-kratos-1 | /go/pkg/mod/github.com/ory/x@v0.0.392/prometheusx/middleware.go:30
kratos-local-kratos-1 | <http://github.com/urfave/negroni.middleware.ServeHTTP|github.com/urfave/negroni.middleware.ServeHTTP>
kratos-local-kratos-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
kratos-local-kratos-1 | <http://github.com/ory/x/metricsx.(*Service).ServeHTTP|github.com/ory/x/metricsx.(*Service).ServeHTTP>
kratos-local-kratos-1 | /go/pkg/mod/github.com/ory/x@v0.0.392/metricsx/middleware.go:275
kratos-local-kratos-1 | <http://github.com/urfave/negroni.middleware.ServeHTTP|github.com/urfave/negroni.middleware.ServeHTTP>
kratos-local-kratos-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
kratos-local-kratos-1 | <http://github.com/ory/kratos/x.HTTPLoaderContextMiddleware.func1|github.com/ory/kratos/x.HTTPLoaderContextMiddleware.func1>
kratos-local-kratos-1 | /project/x/httploadermiddleware.go:20
kratos-local-kratos-1 | <http://github.com/urfave/negroni.HandlerFunc.ServeHTTP|github.com/urfave/negroni.HandlerFunc.ServeHTTP>
kratos-local-kratos-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29
kratos-local-kratos-1 | <http://github.com/urfave/negroni.middleware.ServeHTTP|github.com/urfave/negroni.middleware.ServeHTTP>
kratos-local-kratos-1 | /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
kratos-local-kratos-1 | <http://github.com/ory/kratos/x.RedirectAdminMiddleware|github.com/ory/kratos/x.RedirectAdminMiddleware>
kratos-local-kratos-1 | /project/x/http_redirect_admin.go:22] http_request=map[headers:map[accept:*/* accept-encoding:gzip, deflate, br cache-control:no-cache connection:keep-alive content-length:383 content-type:application/json postman-token:d5b13ab9-481a-4e71-aa07-18a7d4e6dd8f referer:<http://127.0.0.1:4434/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc/> user-agent:PostmanRuntime/7.29.2] host:127.0.0.1:4434 method:PUT path:/admin/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc query:<nil> remote:172.19.0.1:59922 scheme:http] http_response=map[status_code:500] service_name=Ory Kratos service_version=v0.10.1
kratos-local-kratos-1 | time=2022-11-25T12:04:51Z level=info msg=completed handling request func=<http://github.com/ory/x/reqlog.(*Middleware).ServeHTTP|github.com/ory/x/reqlog.(*Middleware).ServeHTTP> file=/go/pkg/mod/github.com/ory/x@v0.0.392/reqlog/middleware.go:139 http_request=map[headers:map[accept:*/* accept-encoding:gzip, deflate, br cache-control:no-cache connection:keep-alive content-length:383 content-type:application/json postman-token:d5b13ab9-481a-4e71-aa07-18a7d4e6dd8f referer:<http://127.0.0.1:4434/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc/> user-agent:PostmanRuntime/7.29.2] host:127.0.0.1:4434 method:PUT path:/admin/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc query:<nil> remote:172.19.0.1:59922 scheme:http] http_response=map[headers:map[cache-control:private, no-cache, no-store, must-revalidate content-type:application/json] size:121 status:500 text_status:Internal Server Error took:13.193084ms]
faint-insurance-61054
11/25/2022, 12:09 PMror=map[message:invalid character '}'
bland-eye-99092
11/25/2022, 12:13 PMtraits
or credentials
they don’t validate. You’re looking for the PATCH
endpoint. Unfortunately, that is not yet released on a stable release. However #ory-network supports it already.colossal-airline-19852
11/25/2022, 12:14 PM{
"id": "923dcc29-9ff2-473f-ac03-bd603c5082cc",
"schema_id": "default",
"schema_url": "<http://127.0.0.1:4433/schemas/ZGVmYXVsdA>",
"verifiable_addresses": [
{
"id": "bdcf18fa-5f18-43fc-a3d3-12ace86c139c",
"value": "<mailto:gowri@xyz.com|gowri@xyz.com>",
"verified": false,
"via": "email",
"status": "sent"
}
]
}
faint-insurance-61054
11/25/2022, 12:15 PMfaint-insurance-61054
11/25/2022, 12:15 PMfaint-insurance-61054
11/25/2022, 12:16 PMcolossal-airline-19852
11/25/2022, 12:20 PMverified
) in the verifiable_addresses
faint-insurance-61054
11/25/2022, 12:23 PMfaint-insurance-61054
11/25/2022, 12:24 PMcolossal-airline-19852
11/25/2022, 12:25 PMerror=map[message:invalid character '}'
however the response is 200faint-insurance-61054
11/25/2022, 12:26 PMfaint-insurance-61054
11/25/2022, 12:26 PMfaint-insurance-61054
11/25/2022, 12:26 PMcolossal-airline-19852
11/25/2022, 12:28 PM{
"id": "923dcc29-9ff2-473f-ac03-bd603c5082cc",
"schema_id": "default",
"schema_url": "<http://127.0.0.1:4433/schemas/ZGVmYXVsdA>",
"state": "active",
"state_changed_at": "2022-11-25T10:49:03.53584646Z",
"traits": {
"email": "<mailto:mathan@xflowpay.com|mathan@xflowpay.com>",
"name": {
"first": "Mathan",
"last": "A"
}
},
"verifiable_addresses": [
{
"id": "bdcf18fa-5f18-43fc-a3d3-12ace86c139c",
"value": "<mailto:mathan@xflowpay.com|mathan@xflowpay.com>",
"verified": false,
"via": "email",
"status": "completed",
"verified_at": "2022-11-25T11:17:02.251347876Z",
"created_at": "2022-11-25T10:49:03.538163Z",
"updated_at": "2022-11-25T11:17:42.810537Z"
}
],
"recovery_addresses": [
{
"id": "b39e5eea-8442-482a-81e2-93a92f2cd2cb",
"value": "<mailto:mathan@xflowpay.com|mathan@xflowpay.com>",
"via": "email",
"created_at": "2022-11-25T10:49:03.538469Z",
"updated_at": "2022-11-25T11:17:42.810818Z"
}
],
"metadata_public": null,
"metadata_admin": null,
"created_at": "2022-11-25T10:49:03.537749Z",
"updated_at": "2022-11-25T10:49:03.537749Z"
}
faint-insurance-61054
11/25/2022, 12:31 PMfaint-insurance-61054
11/25/2022, 12:31 PMcolossal-airline-19852
11/25/2022, 12:38 PMstatus
to sent
just in casefaint-insurance-61054
11/25/2022, 12:41 PMfaint-insurance-61054
11/25/2022, 12:47 PMfaint-insurance-61054
11/25/2022, 12:47 PMcolossal-airline-19852
11/25/2022, 12:48 PM{
"id": "923dcc29-9ff2-473f-ac03-bd603c5082cc",
"schema_id": "default",
"schema_url": "<http://127.0.0.1:4433/schemas/ZGVmYXVsdA>",
"state": "active",
"state_changed_at": "2022-11-25T10:49:03.53584646Z",
"traits": {
"email": "<mailto:mathan@xflowpay.com|mathan@xflowpay.com>",
"name": {
"first": "Mathan",
"last": "A"
}
},
"verifiable_addresses": [
{
"id": "bdcf18fa-5f18-43fc-a3d3-12ace86c139c",
"value": "<mailto:mathan@xflowpay.com|mathan@xflowpay.com>",
"verified": false,
"via": "email",
"status": "sent",
"created_at": "2022-11-25T10:49:03.538163Z",
"updated_at": "2022-11-25T11:17:42.810537Z"
}
],
"recovery_addresses": [
{
"id": "b39e5eea-8442-482a-81e2-93a92f2cd2cb",
"value": "<mailto:mathan@xflowpay.com|mathan@xflowpay.com>",
"via": "email",
"created_at": "2022-11-25T10:49:03.538469Z",
"updated_at": "2022-11-25T11:17:42.810818Z"
}
],
"metadata_public": null,
"metadata_admin": null,
"created_at": "2022-11-25T10:49:03.537749Z",
"updated_at": "2022-11-25T10:49:03.537749Z"
}
Now I have sent without the verified_at
No error in the logs, but still the verified value not getting updatedcolossal-airline-19852
11/25/2022, 12:49 PMkratos-local-kratos-1 | time=2022-11-25T12:46:04Z level=info msg=started handling request func=<http://github.com/ory/x/reqlog.(*Middleware).ServeHTTP|github.com/ory/x/reqlog.(*Middleware).ServeHTTP> file=/go/pkg/mod/github.com/ory/x@v0.0.392/reqlog/middleware.go:131 http_request=map[headers:map[accept:*/* accept-encoding:gzip, deflate, br cache-control:no-cache connection:keep-alive content-length:1182 content-type:application/json postman-token:59c748b0-f3c3-4663-b6ea-d7aa87ea8e72 user-agent:PostmanRuntime/7.29.2] host:127.0.0.1:4434 method:PUT path:/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc/ query:<nil> remote:172.19.0.1:60606 scheme:http]
kratos-local-kratos-1 | time=2022-11-25T12:46:04Z level=info msg=completed handling request func=<http://github.com/ory/x/reqlog.(*Middleware).ServeHTTP|github.com/ory/x/reqlog.(*Middleware).ServeHTTP> file=/go/pkg/mod/github.com/ory/x@v0.0.392/reqlog/middleware.go:139 http_request=map[headers:map[accept:*/* accept-encoding:gzip, deflate, br cache-control:no-cache connection:keep-alive content-length:1182 content-type:application/json postman-token:59c748b0-f3c3-4663-b6ea-d7aa87ea8e72 user-agent:PostmanRuntime/7.29.2] host:127.0.0.1:4434 method:PUT path:/admin/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc query:<nil> remote:172.19.0.1:60606 scheme:http] http_response=map[headers:map[location:/admin/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc] size:0 status:307 text_status:Temporary Redirect took:150.125µs]
kratos-local-kratos-1 | time=2022-11-25T12:46:04Z level=info msg=started handling request func=<http://github.com/ory/x/reqlog.(*Middleware).ServeHTTP|github.com/ory/x/reqlog.(*Middleware).ServeHTTP> file=/go/pkg/mod/github.com/ory/x@v0.0.392/reqlog/middleware.go:131 http_request=map[headers:map[accept:*/* accept-encoding:gzip, deflate, br cache-control:no-cache connection:keep-alive content-length:1182 content-type:application/json postman-token:59c748b0-f3c3-4663-b6ea-d7aa87ea8e72 referer:<http://127.0.0.1:4434/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc/> user-agent:PostmanRuntime/7.29.2] host:127.0.0.1:4434 method:PUT path:/admin/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc query:<nil> remote:172.19.0.1:60606 scheme:http]
kratos-local-kratos-1 | time=2022-11-25T12:46:04Z level=info msg=completed handling request func=<http://github.com/ory/x/reqlog.(*Middleware).ServeHTTP|github.com/ory/x/reqlog.(*Middleware).ServeHTTP> file=/go/pkg/mod/github.com/ory/x@v0.0.392/reqlog/middleware.go:139 http_request=map[headers:map[accept:*/* accept-encoding:gzip, deflate, br cache-control:no-cache connection:keep-alive content-length:1182 content-type:application/json postman-token:59c748b0-f3c3-4663-b6ea-d7aa87ea8e72 referer:<http://127.0.0.1:4434/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc/> user-agent:PostmanRuntime/7.29.2] host:127.0.0.1:4434 method:PUT path:/admin/identities/923dcc29-9ff2-473f-ac03-bd603c5082cc query:<nil> remote:172.19.0.1:60606 scheme:http] http_response=map[headers:map[cache-control:private, no-cache, no-store, must-revalidate content-type:application/json; charset=utf-8] size:1067 status:200 text_status:OK took:29.653667ms]
faint-insurance-61054
11/25/2022, 12:54 PMfaint-insurance-61054
11/25/2022, 12:54 PMcolossal-airline-19852
11/25/2022, 12:57 PMcolossal-airline-19852
11/25/2022, 12:58 PMv0.10.1
of kratosfaint-insurance-61054
11/25/2022, 1:00 PMcolossal-airline-19852
11/25/2022, 1:03 PMfaint-insurance-61054
11/25/2022, 1:11 PMcolossal-airline-19852
11/25/2022, 1:56 PMmaster
code.
means I will have to wait for the next release.
cc: @steep-lamp-91158
Thanks @faint-insurance-61054 for the help so far, really appreciated 🙌.