Entity registration process getting failed (DRAFT state) #138
Answered
by
kesavanp123
nsdlegovernancedevteam
asked this question in
Issues
Replies: 2 comments 9 replies
-
@kesavanp123 @code-blooded-guy Can you please help with this ? |
Beta Was this translation helpful? Give feedback.
3 replies
-
ValidationException occurs when the required json fields are not present. I
am guessing, there was one more version of the Teacher schema you had used
previously, it may still be inside the container which may override the new
schema.
Can you check the schema definition by doing exec on the container? Because
it may contain different teacher schema json that might be previously used.
Also, try to use fresh db and the latest schema, this should work.
…On Mon, Nov 8, 2021 at 5:27 PM nsdlegovernancedevteam < ***@***.***> wrote:
Dear team,
As per your suggestion we retried with the updated images but still same
issue....user in DRAFT state and not visible in keycloak.
registry=# select * from public."V_Student";
ID | @type | osid | above13 | identityDetails_osid | contactDetails_osid | t&c | _osState/school
----+---------+--------------------------------------+---------+--------------------------------------+--------------------------------------+-----+-----------------
1 | Student | 2d4afa4d-1a6d-43a6-8e24-9915dd2e6547 | Yes | 4971b89a-d5c0-4a29-9df8-7b7b76caf21c | a3d7552d-a456-43c0-be5b-c409a47fd58a | t | DRAFT
REPOSITORY TAG IMAGE ID CREATED SIZE
dockerhub/sunbird-rc-core latest e64978e23696 3 weeks ago 412MB
In logs we were/are getting
11:41:18.219 [http-nio-8081-exec-4] ERROR
i.o.v.j.j.JsonValidationServiceImpl:63 - Validation Exception : [#/Teacher:
required key [name] not found, #/Teacher: required key [phoneNumber] not
found, #/Teacher: required key [email] not found, #/Teacher: required key
[school] not found] but still user in inserted in DB
We have volume mount schemas
https://github.com/kesavanp123/ndear/tree/master/schema in container rg
Please suggest
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#138 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM7UABAWBUFQAFT4776BSVLUK63JHANCNFSM5HR7AYYQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
nsdlegovernancedevteam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @tejash-jl, @kesavanp123, @coolbung, @parthlawate
cc: @NageshRaykar @NiranjanV12 @jona-r,
Registered entities(Institute, Teacher, Student) are in DRAFT state.
Users are not visible in Keycloak user section.
Also few day the sunbird-rc-core:latest was created on 2 Nov. But we are unable to pull this image as the latest image now points to 2 months ago.
ref: #116 (reply in thread)
Please suggest.
Beta Was this translation helpful? Give feedback.
All reactions