Skip to main content

Bugs
0 followers
8 questions
9 posts

Do you have questions about Bugs?

Log in to ask questions about Bugs publicly or anonymously.

Discuss Something
Bugs

[RESOLVED] "notifications.slack.status" error on member update via API

We started receiving the following error message when updating our users from the API.

 { "errors": { "notifications.slack.status": "`null` is not a valid enum value for path `notifications.slack.status`." } }

We have not changed anything and not sure why this has started happening.

Can you please assist.

Discuss Something
Bugs

Broken image link when clicking on "users who like this post"

This broken link only occurs when a user hasn't uploaded their own image yet. It should be showing the image assigned by Tribe but instead it shows an error where the image should be.

Discuss Something
Bug ReportBugs

[RESOLVED] Bug: 2 dialog boxes open when clicking "answer"

I think I found a bug. When clicking "answer" to a question, it opens up two dialog boxes for some reason.

Discuss Something
APIsBugsBug Report

[RESOLVED] "Email Address is in use" error when updating user via API

When making PUT request to mycommunity.tribe.so/api/v1/users/:currentUserID and the request JSON body contains the users current email:

email: "current.user.email@mail.com"

we get a 400 bad request error with message: "Email Address is in use".

While it is correct that the Email Address is in use, you should check if the email is the current email of the user before checking if it is in use by other users (email_exists) and only return an error if the email is used by another user. Pseudo-code:

$currentUserEmail = $currentUser->email;
$requestEmail = $_POST['email'];

if ($currentUserEmail !== $requestEmail && email_exists($requestEmail)) {
    return TribeAPIError(
      'email_exists',
      'Email address is in use.',
      ['status' => 409]
    );
}

No biggie, but the response code should be 409 (conflict) for this case.