question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

batch_writer: maximum recursion depth exceeded

See original GitHub issue

Describe the bug I keep getting “maximum recursion depth exceeded” when trying to use batch_writer. It seems to work with some payloads and not others.

I found this issue and tried the “fixes” there but nothing seemed to work for me. Is there anything else that will fix this?

Steps to reproduce

def batch_put(self, items):
  with self.table.batch_writer() as batch:
      for r in items:
          batch.put_item(Item=r)

Expected behavior batch_writer to insert all items

Debug logs maximum recursion depth exceeded

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
C-redddcommented, Sep 16, 2021

Hi again @tim-finnigan,

It turns out I was passing a <class 'bs4.element.NavigableString'> to my Dynamo put_object. Converting the <class 'bs4.element.NavigableString'> to a str() solved my issue. Thank you for all your help!

0reactions
github-actions[bot]commented, Sep 17, 2021

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RecursionError using batch writer #2071 - boto/boto3 - GitHub
RecursionError : maximum recursion depth exceeded while calling a Python object. Is there any other way to solve this problem?
Read more >
Batch Limitation - Maximum Recursion while browsing menus
Maximum setlocal recursion level reached. I suspect this is the recursion limit you are reaching. UPDATE: Actually, the limit is 32 SETLOCAL per ......
Read more >
maximum recursion depth exceeded in comparison
Recursion error: maximum recursion depth exceeded in comparison This can happen with very large or deeply nested source files. You can carefully increase ......
Read more >
batch-write-item — AWS CLI 1.27.33 Command Reference
Any individual item in a batch exceeds 400 KB. ... Use this estimate to measure whether a local secondary index is approaching its...
Read more >
Recursion Depth Exceeded - Python MA Cross by Tomes
RecursionError : maximum recursion depth exceeded while calling a Python object (Open Stacktrace). Is something like this format still possible to make work ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found