-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
It is not possible to create a topic with the SDK v1.4.0.
Code to reproduce
package main
import (
"context"
"log"
"os"
novugo "github.com/novuhq/novu-go"
"github.com/novuhq/novu-go/models/components"
)
func main() {
apiKey := os.Getenv("NOVU_API_KEY")
client := novugo.New(novugo.WithSecurity(apiKey))
_, err := client.Topics.Create(
context.Background(),
components.CreateUpdateTopicRequestDto{Key: "test topic 1234"},
nil,
nil,
)
if err != nil {
log.Fatal(err)
}
}
Expected
It works or at least gives a clear error
Actual
error reading response body: http2: response body closed
This is an actual bug, as I can still retrieve other things through the same code (like the list of environments for example)
sdjelassimoussa
Metadata
Metadata
Assignees
Labels
No labels