There is a Prometheus setup, it needs some fixes for the alert sending…
Like a blackbox exporter? Happy to send a PR too or help.
@pothos Is it possible to get some alerting setup? Like a http check could serve as a monitor and a cheap test.
@schengawegga Yeah, as I said I am more surprised it took this long for someone to file a bug.
@liggitt a question: Wouldn't e.g. a panic("unsupported")
make more sense? As in, to highlight when something is not supported. This just seems like a bug or very obscure behaviour otherwise.
Hey,
just trying out your code and noticed that client.debug
doesn't work as it's not exported (capitalized). Generally, maybe an option pattern would work nicer to setup the client?
lexoffice.NewClient(apiKey,
lexoffice.WithDebug(true),
lexoffice.WithHttpClient(myOwnClient),
)
func NewClient(apiKey, ...opts) (*lexoffice.Client, error) {
// ...
// probably range over the opts
}
Thoughts?
@wolfgang-werner 👋 Sorry I closed this. Had no expected a response.
I started working on/fixing up another lib called golexoffice as it seemed to support more calls originally.
When I asked its author, they archived it and told me I could maintain it going forward as they are no longer using it.
Generally, we need contact management and invoices so far. I am also happy to collaborate on it going forward.
What I did so far is here: https://github.com/hostwithquantum/golexoffice
Mostly added error handling, and a basic test suite. The library was also really procedural.
Fix: person/contact creation
Fix: handle errors from the API
Merge pull request #2 from hostwithquantum/handle-errors
handle errors
Hey,
just trying out your code and noticed that client.debug
doesn't work as it's not exported (capitalized). Generally, maybe an option pattern would work nicer to setup the client?
lexoffice.NewClient(apiKey,
lexoffice.WithDebug(true),
lexoffice.WithHttpClient(myOwnClient),
)
func NewClient(apiKey, ...opts) (*lexoffice.Client, error) {
// ...
// probably range over the opts
}
Thoughts?
Chore: create a GH release
Fix: person/contact creation
Fix: handle errors from the API
Chore: create a GH release
Fix: handle errors from the API
Fix: handle errors from the API
Fix: person/contact creation
Fix: person/contact creation
Fix: person/contact creation
I am building a form similar to this (using the helper components): https://svelte-forms-lib-sapper-docs.vercel.app/helpers
My validation works pre submit, however, when I make my request to save my data and encounter an error, I am not sure how to write to the $errors
store. Or how to even subscribe to it when I don't use createForm()
. Would anyone have an example of how that is done?