I’m getting the following error from `python main....
# connector-development
u
I’m getting the following error from
python main.py check --config secrets/config.json
In my spec.json I have
Copy code
"page-size": {
    "type": "number",
    "description": "Results per page"
},
Changing it to
string
works, but I would expect
number
to work.
u
what is the error?
u
Copy code
raise Exception("Config validation error: " + validation_error.message) from None
Exception: Config validation error: '10' is not of type 'number'
u
this is silly but could you try
10.0
u
or changing the type to
integer
?
u
k one sec
u
i’ll have to test it in airbyte later when i don’t have that connector running
u
it seems like the form field in the interface will present the value as a string which works fine
u
If you didn’t try, please do: change the config.json value from string to number, a.k.a - remove quotes from the value of “page-size”
u
Locally isn’t the issue, in the config.json a string is a string and a number is a number. It’s when using the airbyte interface i encountered the error
c
Apologies for rezzing an old thread, has there been a resolution on this string=>number issue? We just ran into this.