Hi, I have noticed i am getting warning:
opal-fetcher-sqlite-opal_server-1 | 2023-08-11T07
4319.629697+0000 | opal_server.data.api |WARNING | Serving default all-data route, meaning DATA_CONFIG_SOURCES was not configured!
while i do have - OPAL_DATA_CONFIG_SOURCES='{"config":{"entries":[{"topics":["policy_data"],"dst_path":"cities","url":"file:/db/opal.db","config":{"fetcher":"SQLiteFetchProvider","query":"SELECT * FROM city;"}}]}}'
configured.
However, when i manually do a call to
http://localhost:7002/data/config with the payload (from "config" object)
{
"entries":[
{
"topics":[
"policy_data"
],
"dst_path":"cities",
"url":"file:/db/opal.db",
"config":{
"fetcher":"SQLiteFetchProvider",
"query":"SELECT * FROM city;"
}
}
]
}
It is successfully processed and data is fetched and posted accordingly.
So, the question is what is wrong with the DATA_CONFIG_SOURCES?
Tnx