ord icon indicating copy to clipboard operation
ord copied to clipboard

rendering of text inscription broken in some cases and `content` API returns "not found"

Open A60AB5450353F40E opened this issue 2 years ago • 3 comments

Example, inscription: https://ordinals.com/inscription/8ae4f4b93d8e3bb4b53b8dd437d8d360930f0e9733f437d67d465daf2a57fdabi0 displays ok but

content: https://ordinals.com/content/8ae4f4b93d8e3bb4b53b8dd437d8d360930f0e9733f437d67d465daf2a57fdabi0

returns inscription 8ae4f4b93d8e3bb4b53b8dd437d8d360930f0e9733f437d67d465daf2a57fdabi0 not found

also, the preview API repeats the file 2 times between <pre></pre> tags, you can do

curl https://ordinals.com/preview/8ae4f4b93d8e3bb4b53b8dd437d8d360930f0e9733f437d67d465daf2a57fdabi0 | grep -e '--'

to see that.

Another part renders OK, like this: https://ordinals.com/content/97e4fbe87d50eb3852b7814d470633926f735edf556a761c46b584e9617868d0i0

I want to submit the final piece, header + part 1 of 7, but to tie it all together I need to know the links will be working

A60AB5450353F40E avatar Feb 18 '23 20:02 A60AB5450353F40E

Anyway, this works to assemble the file, would've preferred to use the content API, though:

cat \
<(curl -s https://ordinals.com/preview/a31b8e3e279a6e28ef49fa4dca54f820abf266223976b778833e8c47991ad403i0 | sed -n '/--BEGIN/,/--END/p' | grep -v -e '-B' | base64 --decode 2>/dev/null) \
<(curl -s https://ordinals.com/preview/9bb82d96abbef61854b3524f167371cc65d0bb9a089f716e6c1981014269dc02i0 | sed -n '/--BEGIN/,/--END/p' | grep -v -e '-B' | base64 --decode 2>/dev/null) \
<(curl -s https://ordinals.com/preview/97e4fbe87d50eb3852b7814d470633926f735edf556a761c46b584e9617868d0i0 | sed -n '/--BEGIN/,/--END/p' | grep -v -e '-B' | base64 --decode 2>/dev/null) \
<(curl -s https://ordinals.com/preview/8ae4f4b93d8e3bb4b53b8dd437d8d360930f0e9733f437d67d465daf2a57fdabi0 | sed -n '/--BEGIN/,/--END/p' | grep -v -e '-B' | base64 --decode 2>/dev/null) \
<(curl -s https://ordinals.com/preview/2fd2b489f17e48907c76577300945d7a17f284421af2b4b198ed4fc9a8a3aa32i0 | sed -n '/--BEGIN/,/--END/p' | grep -v -e '-B' | base64 --decode 2>/dev/null) \
<(curl -s https://ordinals.com/preview/a2ec351bf2c050e5d6b6a543940437d7e16c5568ba0a6052c051d1cc996b1e63i0 | sed -n '/--BEGIN/,/--END/p' | grep -v -e '-B' | base64 --decode 2>/dev/null) \
<(curl -s https://ordinals.com/preview/8f40f7bed3d20bd7f8c226646be130beda9f19f52fe4c025b4f24e47553dfe04i0 | sed -n '/--BEGIN/,/--END/p' | grep -v -e '-B' | base64 --decode 2>/dev/null) \
> independence.bin
sha256sum -c <(echo '453b68a7975938525b8eb02807740f8334534dae1344146862cc197aa0d99bab  independence.bin')

A60AB5450353F40E avatar Feb 19 '23 07:02 A60AB5450353F40E

And here's the "cover" inscription, one that pulls those 380kB chunks and assembles the file :)

https://ordinals.com/content/3d85ca419f50b1128f8954fe98147742f83baf0206ee3db54e386b81cb61739di0

A60AB5450353F40E avatar Feb 19 '23 12:02 A60AB5450353F40E

also https://ordinals.com/inscription/3d85ca419f50b1128f8954fe98147742f83baf0206ee3db54e386b81cb61739di0 returns Internal Server Error while https://ordinals.com/preview/3d85ca419f50b1128f8954fe98147742f83baf0206ee3db54e386b81cb61739di0 renders just fine

A60AB5450353F40E avatar Feb 19 '23 15:02 A60AB5450353F40E