Oddbean new post about | logout
 Gossip (unstable, not yet master) now does basic blossom.

It only uploads to 1 server and doesn't create any fallback mirrors.
It doesn't sync your blossom server config.
It doesn't utilize imeta->fallback fields from other people's notes.

But it does let you specify a blossom server (Settings > Posting > Blossom servers), lets you pick a file from your filesystem, uploads it and reports the error (click it away after you read it) or inserts the link into your edit area.

And chorus handles the other end as I finished its blossom support yesterday.

Tested against:
- chorus.mikedilger.com:444 (works for me as I'm configured, but it won't work for you).
- blossom.primal.net
- blossom.nostr.hu
- cdn.hzrd149.com
- cdn.satellite earth (402 Payment Required)
- nostrmedia.com (500 Internal Server Error) 
 Please check other replies 😏  
 I've already paid, though...
HTTP (reqwest) error: error sending request for url (https://cdn.satellite/upload) 
 I seemed to have missed a '.' between 'satellite' and 'earth' and so have you. 
 Even after trying to insert it, it didn't work  
Blossom error: 401 Unauthorized 
 What are you putting into the Blossom Servers box?  I put "cdn.satellite.earth" and I get `402 Payment Required` which is as expected.  Don't put in URLs like "https://cdn.satellite.earth/upload", it doesn't want URLs because blossom support may include other URLs like /mirror.   You can however specify a port. 
 Also, I've been pushing fixes up until about an hour ago so pull the latest. 
 Based on BUD-03, I may have to change this anyways.  It wants the full URL of the base.  Changes will be coming. 
 OK!ありがとう👍 
 You can now put in either hostnames or URLs (just pushed).  If you put a URL with a scheme, it will keep/honor the scheme.  If you put a path/query/fragment it will ignore those.  So you can even leave the "/upload" and it will still work. 
 https://cdn.satellite.earth/upload → HTTP (reqwest) error: error sending request for url (https://https//cdn.satellite.earth/upload/upload)
cdn.satellite.earth/upload → Blossom error: 404 Not Found
cdn.satellite.earth → Blossom error: 401 Unauthorized

@fiatjaf
You're using https://satellite.earth/cdn/upload too, right? Could you try it out for me? 
 I put the fix on unstable.  I guess I can copy it to master.  There.  Pull and try again. 
 cdn.satellite.earth/upload → Uploading...
It remains stuck on "Uploading..." 
 Thanks for helping me find all the ways it could fail.  I've pushed another fix (the 13th fix since I thought I was finished!) 
 (`・ω・´)ゞ

cdn.satellite.earth/upload → Invalid URI: invalid format
cdn.satellite.earth → Blossom error: 404 Not Found
https://cdn.satellite.earth/upload → Blossom error: 404 Not Found 
 That first one isn't a hostname and it isn't a URL either.  So I don't think I could make that one work too easily.

The second two are being understood but there is some other problem.  Only I don't understand what it is yet.  404 Not Found is a strange error for an upload.

Could you try "https://blossom.primal.net" or "https://blossom.nostr.hu"  and see if they also give you a 404? 
 https://blossom.primal.nethttps://blossom.primal.net/57eaa95f400e2235a8eed6569b63a9c010d3b724baba226b992f8b53ff1518e4.png

https://blossom.nostr.hu → Blossom error: 404 Not Found 

cdn.hzrd149.com → Blossom error: 404 Not Found 

The cdn.hzrd149.com that was working well in the morning has also become a Blossom error: 404 Not Found. Only https://blossom.primal.net is working well. 
 Ok I pushed another fix (it was putting a double-slash in the URL).  I also merged in a fix to kind-1111 notes which will rebuild relationships.