Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] pastemyst doesn't send the supporterLength property #306

Closed
ANF-Studios opened this issue Jan 23, 2021 · 1 comment · Fixed by #310
Closed

[bug] pastemyst doesn't send the supporterLength property #306

ANF-Studios opened this issue Jan 23, 2021 · 1 comment · Fixed by #310
Labels
backend bug Something isn't working

Comments

@ANF-Studios
Copy link
Contributor

ANF-Studios commented Jan 23, 2021

describe the bug
The supportLength property isn't received from the API at all on GET requests as it should according to the docs.

to reproduce
steps to reproduce the behavior:

  1. Create a get request to https://paste.myst.rs/user/{username}
  2. Notice how you won't receive the supporterLength property.

expected behavior
The field should have a value even if a user isn't supporting. At least "" i.e null. This causes some exception errors in the client.

screenshots
image

image

device and browser:

  • os: Microsft Windows 10 Pro x64 (of WINDOWS_NT which uses Win32)
  • browser: N/A
  • browser version: N/A

additional context
This error occurred when making a GET request and the property was missing.

Going yourself to that link manually, we get:

{"_id":"w4a07yw7","username":"ANF-Studios","avatarUrl":"https://avatars1.githubusercontent.com/u/68814933?v=4","publicProfile":true,"defaultLang":"Autodetect"}
@CodeMyst
Copy link
Owner

it also doesnt send if the user is a contributor or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants