Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-9474

[importer] Error with Python 3 when trying to upload file to S3 bucket

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.7.0
    • Fix Version/s: None
    • Component/s: app.importer
    • Labels:
      None

      Description

      [31/Aug/2020 03:43:49 -0700] upload ERROR Failed to upload file to S3 at test.csv: string argument expected, got 'bytes'Traceback (most recent call last):
      File "/Users/jahlen/dev/hue/desktop/libs/aws/src/aws/s3/upload.py", line 101, in receive_data_chunk
      fp = self._get_file_part(raw_data)
      File "/Users/jahlen/dev/hue/desktop/libs/aws/src/aws/s3/upload.py", line 155, in _get_file_part
      fp.write(raw_data)
      TypeError: string argument expected, got 'bytes'

        Attachments

          Activity

            People

            • Assignee:
              ayush.goyal Ayush Kumar Goyal
              Reporter:
              ayush.goyal Ayush Kumar Goyal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: