Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UUID field is null when created via REST API #5

Open
inovosel opened this issue Jun 5, 2023 · 3 comments
Open

UUID field is null when created via REST API #5

inovosel opened this issue Jun 5, 2023 · 3 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@inovosel
Copy link

inovosel commented Jun 5, 2023

When new data is created via REST API, on afterCreate event UUID field has value null.
When creating the same data from Strapi Admin everything works fine.

@scerelli scerelli self-assigned this Jun 13, 2023
@scerelli scerelli added the bug Something isn't working label Jun 13, 2023
@scerelli
Copy link
Contributor

scerelli commented Jun 17, 2023

can you give me more info please? i tried this out and to me it's not null. How are you trying to create the record? can you share part of your model. thanks

image

@scerelli scerelli added investigating question Further information is requested and removed investigating labels Jun 23, 2023
@NicoHof
Copy link

NicoHof commented Jul 9, 2023

I am facing the same issue. Maybe its an issue with users permissions?
I added a field called "uuid" to my user model with custom field type auto-uuid as described. Works in Admin UI Editor. When creating a user with Rest API /auth/local/register and omitting the uuid field the uuid field keeps null for the newly created user.

@scerelli
Copy link
Contributor

thank you @NicoHof I will try some more tests and let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants