Fix client errors for users who do not have photos

Created on 8 August 2022, over 2 years ago
Updated 26 September 2023, about 1 year ago

Problem/Motivation

Its documented in the code as a TODO, but users who don't have photos see messages every time they login and it fills up the logs quite a bit. I looked into this a bit and I think this solution of testing the Meta data first looks like a good approach.

Client error: `GET https://graph.microsoft.com/v1.0/users/_______/photos/648x648` resulted in a `404 Not Found` response:

Steps to reproduce

1. Have an account with no profile photo
2. Login to a site that shows "Errors and Warnings"
3. See Client Error

Proposed resolution

Test if image meta data exists first, then attempt to request image from api.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States NicholasS

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024