databendlabs / databend-go

Golang driver for databend cloud
Apache License 2.0
20 stars 5 forks source link

upload stage "error":{"code":"400","message":"Parse stage_name error, please check your arguments"} #116

Closed blade83lee closed 3 months ago

blade83lee commented 5 months ago
   stage := &godatabend.StageLocation{
            Name: "fluentbit",
            Path: fmt.Sprintf("fluentbit/%d-%s", time.Now().Unix(), filepath.Base(filename)),
    }
    fmt.Println(stage.Name)
    ctxd, cannel := context.WithCancel(context.Background())
    defer cannel()
    err = apiClient.UploadToStage(ctxd,stage, input,size)

result: 企业微信截图_17153298959057 1715329918128 so the stage err? but print right name

hantmac commented 3 months ago

@blade83lee Try "~" stage , maybe stage name format error? @Xuanwo Need a help 😄

Xuanwo commented 3 months ago

I'm not familiar with godatabend. Does it add an @ before the input stage name? But the way, what's your filename looks like?

hantmac commented 3 months ago

Hi @blade83lee , you have resolved this problem?

blade83lee commented 3 months ago

I used another tool vector to connect databend