Around 5:30am PT July 7th 20201 we had an app using a Prismic repository spike in errors for several hours with several different exceptions. Over the course of the day as we investigated, the app experience a loss of rendering content from Prismic as the application cache expired.
The error that eventually led us to the root cause was
NoMethodError: undefined method 'downcase' for nil:NilClass. Early on we were able to attribute it to this line in the prismicio-community/ruby-kit.
It turns out that there was a release created on this repo with no label, and it's not clear how. In the UI a release can't be created without a label, and a label can't be deleted or made an empty string when editing an existing.
Has anyone else seen this? The errors started before working hours at our company and it seems unlikely anyone could have created this case in the writing room. Is there any other way besides the writing room to create a release without a label? That line in the ruby-kit is 7 years old, so I imagine this case is rare and likely shouldn't be possible due to writing room validation?