Which host name do I have to specify? Every option returns 404
Typically you would choose any unique per lease collection name. If you have many feeds in the same lease collection, you may include random GUID. If you continue getting 404s, provide stack trace and some sample code.
Alright, that wasn't about host name as it turned out. The reason was that lease collection wasn't created in advance. So here are my thoughts on that:
-
Docs can be improved about this parameter/method
WithHostName, sincesets the host nameto me was completely obscure, and I didn't get the meaning behind this parameter. -
Would be really nice to have more info in error response about what exactly wasn't found, since
404status doesn't tell you much when there're several parameters at play: the feed collection might not be found, the lease collection, the database itself and who knows what else. -
Would be cool to move mandatory parameters like
hostNameto builder constructor rather then having them asWith...methods, since it's unclear whichWith...methods are required and which are optional.