azure-documentdb-changefeedprocessor-dotnet icon indicating copy to clipboard operation
azure-documentdb-changefeedprocessor-dotnet copied to clipboard

Which host name do I have to specify? Every option returns 404

Open atsapura opened this issue 5 years ago • 2 comments

atsapura avatar Jun 22 '20 19:06 atsapura

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.

mkolt avatar Jun 23 '20 17:06 mkolt

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, since sets the host name to 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 404 status 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 hostName to builder constructor rather then having them as With... methods, since it's unclear which With... methods are required and which are optional.

atsapura avatar Jun 24 '20 14:06 atsapura