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

getting exception while calling Dynamo db updateitem #2754

Closed
jamivinaysagar opened this issue Feb 4, 2021 · 2 comments
Closed

getting exception while calling Dynamo db updateitem #2754

jamivinaysagar opened this issue Feb 4, 2021 · 2 comments
Assignees
Labels
closed-for-staleness guidance Question that needs advice or information. response-requested Waiting on additional information or feedback.

Comments

@jamivinaysagar
Copy link

Please fill out the sections below to help us address your issue.

What issue did you see ?
getting errored out with boto3.dynamodb.transform.TransformationInjector object at 0x7fd4ad69cd90

Steps to reproduce
If you have a runnable example, please include it as a snippet or link to a repository/gist for larger code examples.
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('testing_table')

    response = table.update_item(
        Key={
            'Id': user_id,
            'Timestamp': time_stamp
        },
        UpdateExpression="SET UpdateItem.EventDate=:r",
        ConditionExpression = Attr('EventDate').not_exists(),
        #ConditionExpression = 'attribute_not_exists('EventDate')',

        ExpressionAttributeValues={
            ':r': event_date
        },
        ReturnValues="UPDATED_NEW"
    )

    return response

Debug logs

<bound method TransformationInjector.inject_attribute_value_output of <boto3.dynamodb.transform.TransformationInjector object at 0x7fd4ad69cd90>
Full stack trace by adding boto3.set_stream_logger('') to your code.

@jamivinaysagar jamivinaysagar added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Feb 4, 2021
@kdaily kdaily self-assigned this Feb 9, 2021
@kdaily kdaily added investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Feb 9, 2021
@kdaily
Copy link
Member

kdaily commented Feb 9, 2021

Hi @jamivinaysagar,

I'm not seeing an error message here. can you add your stack trace as noted in the issue template, please? Thanks!

@kdaily kdaily added response-requested Waiting on additional information or feedback. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Feb 9, 2021
@github-actions
Copy link

Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness guidance Question that needs advice or information. response-requested Waiting on additional information or feedback.
Projects
None yet
Development

No branches or pull requests

2 participants