Joystream / youtube-synch

YouTube Synchronization
11 stars 10 forks source link

The YPP backend is not sending error codes in response any more #156

Closed drillprop closed 1 year ago

drillprop commented 1 year ago

Not a bug per se, but it would be easier to handle the error response on the front end if we get the error code from the backend.

This worked before, not sure why we're not getting these codes anymore. 👇🏻

export enum YppAuthorizationErrorCode {
  CHANNEL_ALREADY_REGISTERED = 'CHANNEL_ALREADY_REGISTERED',
  CHANNEL_NOT_FOUND = 'CHANNEL_NOT_FOUND',
  CHANNEL_CRITERIA_UNMET_SUBSCRIBERS = 'CHANNEL_CRITERIA_UNMET_SUBSCRIBERS',
  CHANNEL_CRITERIA_UNMET_VIDEOS = 'CHANNEL_CRITERIA_UNMET_VIDEOS',
  CHANNEL_CRITERIA_UNMET_CREATION_DATE = 'CHANNEL_CRITERIA_UNMET_CREATION_DATE',
  YOUTUBE_QUOTA_LIMIT_EXCEEDED = 'YOUTUBE_QUOTA_LIMIT_EXCEEDED',
}

┆Issue is synchronized with this Asana task by Unito