Open-event-server: Accounts: Profile Picture not getting updated

Created on 11 Jul 2019  Â·  15Comments  Â·  Source: fossasia/open-event-server

Describe the bug

Profile Picture not getting updated

To Reproduce

Steps to reproduce the behavior:

  • Try to change your Profile Image in Accounts

Expected behavior

Should be done without any issue.

Stacktrace

File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 36, in reraise
    raise value
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1832, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1818, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.7/site-packages/flask_jwt/__init__.py", line 177, in decorator
    return fn(*args, **kwargs)
  File "/Users/kush/open-event-server/app/api/uploads.py", line 15, in upload_image
    extension = '.{}'.format(image.split(";")[0].split("/")[1])
IndexError: list index out of range
bug

All 15 comments

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Not facing this issue. @uds5501 @mrsaicharan1 @shreyanshdwivedi Are you able to reproduce it locally?

Ok, turns out I am not able to update profile picture from non-null to null from frontend, able to do so with postman. Although I didn't get this error stack.

@kushthedude @prateekj117 Works fine in all cases.

@mrsaicharan1 Have you tried with open-event-frontend? Change avatar from non-null to null.

Yes

Will check again and not ,will close the issue

On Fri, 12 Jul 2019 at 9:44 PM, Saicharan Reddy notifications@github.com
wrote:

Yes

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fossasia/open-event-server/issues/6171?email_source=notifications&email_token=AKQMTLWYV3ER5TAJD6ZSBJDP7CUX3A5CNFSM4IAKNQTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ2GREA#issuecomment-510945424,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKQMTLTRJNTG5LTXIBMU6ELP7CUX3ANCNFSM4IAKNQTA
.

So, I've checked again. This is happening by chance. Sometimes it's happening, sometimes it isn't so let's keep it open.

So, I've checked again. This is happening by chance. Sometimes it's happening, sometimes it isn't so let's keep it open.

@mrsaicharan1, It's occurring at every place where we are using the Image Upload tool, and

File "/Users/kush/open-event-server/venv/lib/python3.7/site-packages/flask_jwt_extended/view_decorators.py", line 103, in wrapper
    return fn(*args, **kwargs)
  File "/Users/kush/open-event-server/app/api/uploads.py", line 15, in upload_image
    extension = '.{}'.format(image.split(";")[0].split("/")[1])
IndexError: list index out of range

with this stacktrace, Were you able to reproduce it ?

@kushthedude Please tell me a few things about this issue -

  • Was the celery on and working during this report?
  • What are the types of images which shows this error (extensions)

Also is there anything particular which comes up during this issue?

Celery was on during it

On Thu, 1 Aug, 2019, 19:47 Uddeshya Singh, notifications@github.com wrote:

@kushthedude https://github.com/kushthedude Please tell me a few things
about this issue -

  • Was the celery on and working during this report?
  • What are the types of images which shows this error (extensions)

Also is there anything particular which comes up during this issue?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fossasia/open-event-server/issues/6171?email_source=notifications&email_token=AKQMTLSO67PY75AOB2DAEA3QCLV6JA5CNFSM4IAKNQTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3KXWTQ#issuecomment-517307214,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKQMTLQQWYH3BHBROYE4DLDQCLV6JANCNFSM4IAKNQTA
.

Some index error was there in upload.py

On Thu, 1 Aug, 2019, 20:12 Kush Trivedi, kushthedude@gmail.com wrote:

Celery was on during it

On Thu, 1 Aug, 2019, 19:47 Uddeshya Singh, notifications@github.com
wrote:

@kushthedude https://github.com/kushthedude Please tell me a few
things about this issue -

  • Was the celery on and working during this report?
  • What are the types of images which shows this error (extensions)

Also is there anything particular which comes up during this issue?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fossasia/open-event-server/issues/6171?email_source=notifications&email_token=AKQMTLSO67PY75AOB2DAEA3QCLV6JA5CNFSM4IAKNQTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3KXWTQ#issuecomment-517307214,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKQMTLQQWYH3BHBROYE4DLDQCLV6JANCNFSM4IAKNQTA
.

Paste the value of image variable

@kushthedude can you check if this is still reproducible?

Working now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mariobehling picture mariobehling  Â·  4Comments

mariobehling picture mariobehling  Â·  4Comments

shubham-padia picture shubham-padia  Â·  4Comments

Masquerade0097 picture Masquerade0097  Â·  3Comments

aviaryan picture aviaryan  Â·  3Comments