Fuck I’m an idiot… my code tried to get the stream to pull the metadata url out… naturally it failed when no stream
Here is the curl stuff for non updating metadata
➜ ~ curl -i -d ‘{ “$maxAge”: 200 }’ “http://127.0.0.1:2113/streams/nonexistent/metadata” -H “Content-Type:application/json” -H “Es-eventType:maxage.warmup” -H “Es-eventId:fbf4a1a1-b4a3-4dfe-a01f-ec52c34e16e4”
HTTP/1.1 201 Created
Access-Control-Allow-Methods: GET, POST, GET, OPTIONS
Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-PINGOTHER, Authorization, ES-LongPoll, ES-ExpectedVersion, ES-EventId, ES-EventType, ES-RequiresMaster, ES-HardDelete, ES-ResolveLinkTo, ES-ExpectedVersion
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location, ES-Position
Location: http://127.0.0.1:2113/streams/%24%24nonexistent/0
Content-Type: text/plain; charset=utf-8
Server: Mono-HTTPAPI/1.0
Content-Length: 0
Keep-Alive: timeout=15,max=100
➜ ~ curl -i -d ‘{ “$maxAge”: 500 }’ “http://127.0.0.1:2113/streams/nonexistent/metadata” -H “Content-Type:application/json” -H “Es-eventType:maxage.warmup” -H “Es-eventId:fbf4a1a1-b4a3-4dfe-a01f-ec52c34e16e4”
HTTP/1.1 201 Created
Access-Control-Allow-Methods: GET, POST, GET, OPTIONS
Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-PINGOTHER, Authorization, ES-LongPoll, ES-ExpectedVersion, ES-EventId, ES-EventType, ES-RequiresMaster, ES-HardDelete, ES-ResolveLinkTo, ES-ExpectedVersion
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location, ES-Position
Location: http://127.0.0.1:2113/streams/%24%24nonexistent/0
Content-Type: text/plain; charset=utf-8
Server: Mono-HTTPAPI/1.0
Content-Length: 0
Keep-Alive: timeout=15,max=100
➜ ~ curl “http://127.0.0.1:2113/streams/nonexistent/metadata” -H “Accept:application/json”
{
“$maxAge”: 200
}% ➜ ~