tburch/jsonblob

JSON Blob is undergoing some server maintenance. Sorry for any turbulence.

mawais91 opened this issue · 16 comments

I had few links on JsonBlob those were live from quite long time. Now I am getting 404 against those links. Any kind of help would be appreciated. Thanks

same here.
many of my blobs are gone and opening the links show blank page

@tburch can you please look into this :(

Hi, @mawais91 and @Prabesh01 Do you have IDs? There have been some people abusing the API, which caused it to lose some data Monday afternoon through Monday night (US time).

Yes @tburch I do have ids of blob I use in my applications..

Yeah I too have.

@mawais91 @Prabesh01 can you email those to my Github username @jsonblob.com?

@tburch i have just sent you email that contains ids i am using.

@mawais91 and @Prabesh01 this should be fixed. Please re-open if it's not.

@tburch
Yeah this issue has been fixed but am facing another.
The blobs aren't being written. Even if I manually edit blobs from browser, it isn't being saved.

And I noticed that you changed new blob ids from random alpha-numeric to numbers. Why so?

@Prabesh01 can you elaborate on blobs not being saved? As far as I can tell, both the UI and API are working as expected (the UI just uses the API).

tburch@Aloysius-Snuffleupagus ~> curl -i -X "POST" -d '{"people":["bill", "steve", "bob"]}' -H "Content-Type: application/json" -H "Accept: application/json" https://jsonblob.com/api/jsonBlob
HTTP/2 201 
date: Thu, 26 Aug 2021 16:51:16 GMT
content-type: application/json
content-length: 35
location: http://jsonblob.com/api/jsonBlob/880494619076501504
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=3hH5qfg%2BcgG0BCRVzGSpt8ljEI5bMPnxR5BxEn5%2BhAPYZtGXxU5pyJ91QkPtxD5e%2BjhZDBvSlk3FTa%2F7cOfVumcTQonZZDJUSPozNj%2FEAPNvHYebTGKzU7FrTrGAbA0%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 684e905869570bef-DFW
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400

{"people":["bill", "steve", "bob"]}
---
tburch@Aloysius-Snuffleupagus ~> curl -i -H "Content-Type: application/json" -H "Accept: application/json" https://jsonblob.com/api/jsonBlob/880494619076501504
HTTP/2 200 
date: Thu, 26 Aug 2021 16:51:42 GMT
content-type: application/json
content-length: 35
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=kxYIYykHJ4iCeE9rof8nxYjTWeh5zcfGrevtedd9f%2FHvMjTPAG6NGrTdWdr5eietcO2Nt3tctei8%2BT1FdQT9jStL%2BIr7Y4zCjYeWgKuUdPV8%2FzWw4otOqpSceG31wU4%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 684e90fb09460b7e-DFW
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400

{"people":["bill", "steve", "bob"]}
---
tburch@Aloysius-Snuffleupagus ~> curl -i -X "PUT" -d '{"people":["fred", "mark", "andrew"]}' -H "Content-Type: application/json" -H "Accept: application/json" https://jsonblob.com/api/jsonBlob/880494619076501504
HTTP/2 200 
date: Thu, 26 Aug 2021 16:53:32 GMT
content-type: application/json
content-length: 37
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=ExTXPnalOij0fA0NljG1A%2FzqTyjsjN1ebAvvvNgMmXiVLT1O%2FWnk5LWFRqwW1nhVJMI9hNWlJ7WTn1fo3vkSfy4NLe0DfiXHCxKhSmmp5bDISAvcW5virQAKNvLE3xk%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 684e93ae6c072f91-DFW
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400

{"people":["fred", "mark", "andrew"]}
---
tburch@Aloysius-Snuffleupagus ~> curl -i -H "Content-Type: application/json" -H "Accept: application/json" https://jsonblob.com/api/jsonBlob/880494619076501504
HTTP/2 200 
date: Thu, 26 Aug 2021 16:53:38 GMT
content-type: application/json
content-length: 37
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=pbTbqnwnqaobiSrZ5g1w%2BVteQUYE7N5%2B9%2Fb3Yd6Raqox2fVHK5tXIb2tKCn7GSXp%2FiahHVRibMK51rPWGC0qZHgkMKsufC%2FDnPD9GPJ9rEnW2NDP2fFx9nZORrIIEPs%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 684e93d2f9510efa-DFW
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400

{"people":["fred", "mark", "andrew"]}

The blob IDs have changed throughout the years... at first, they were MongoDB ObjectIds, then type-1 UUIDs, and now they're SnowFlake IDs. I made the change to support running more than 1 instance of JSONBlob to avoid type-1 UUID conflicts on object creation.

Here's a blobs I am not able to edit and save:

https://jsonblob.com/b8dc3f9f-cb86-11eb-84c9-3b6f8e6f54e3

More blobs I am using have this issue, am just sharing one.

@tburch
Try editing and saving it then reload, you will see that its not changed at all

@tburch
Can you confirm that this issue is valid and its not just me facing it?

Interesting. I can confirm it's not saving. I'll take a look and see what's going on.

OK

Update the progress in #91