Data Payload too big for media URL?

Hi @meredydd
thanks for your answer!

I tried to change the get_url() statement, however it still breaks. Therfore I did some further investigation.

To me, it seems like the code breaks when creating the PDF file. Which makes the error message even stranger since i thought that rendering PDFs happens soley on the server?

Function that creates Multiple PDF Orders: (as discussed in Problems Creating Multiple Anvil PDF's )

#... the variable data (list of orders is created) -> could get quite large
  
  
  print('point3')
  
  #2. Generate pdf based on the data
  pdf = PDFRenderer(page_size='A4',filename=str(row['id']) + '.pdf',quality='original',
                    margins={'top': 0.3, 'bottom': 1.5, 'left': 1.5, 'right': 1.0}
                   ).render_form('MarkOne_Bestellungen.mulitple_a5_orders',data)
  
  print('point4')
  #3. Store the pdf temporary on the user db
  anvil.users.get_user()['media_puffer'] = pdf
  print('point5')
  #4. Return the urls so it can be printed with the js fuction
  url = anvil.users.get_user()['media_puffer'].get_url()
  print(len(url))
  print(url[:30])
  
  print(datetime.now()-start,'1') #how fast was it?
  print('point6')
  return url

Output