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

while updating the model getting validationException #178

Open
LovikaJ opened this issue Feb 21, 2019 · 1 comment
Open

while updating the model getting validationException #178

LovikaJ opened this issue Feb 21, 2019 · 1 comment

Comments

@LovikaJ
Copy link

LovikaJ commented Feb 21, 2019

I am migrating from vogels to dynogels and while updating the model I am getting this error:
ValidationException: Invalid UpdateExpression: An expression attribute value used in expression is not defined; attribute value: :ip

I debugged it and found that after I use set session.set(token: token, ip:sourceip) and then use session.updateAsync() it throws the mentioned error.

my test case fails only when I am not passing value to ip. this used to work fine in vogels. I checked and found that in models attributes I don't get the field which is undefined but in case of dynogels I am getting it in the model attribute

vogels:
{ createdAt: '2019-02-21T07:05:13.640Z'}

dynogels:
{createdAt: '2019-02-21T10:42:01.958Z',ip: undefined}
@rchl
Copy link

rchl commented Feb 25, 2019

I believe it's the update validation. There is PR to remove it (#129) but author of this project is MIA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants