datacommonsorg/mixer

node/property-values GET and POST responses are different for empty dcid in dcids array

chejennifer opened this issue · 1 comments

GET

request:

curl --request GET \
  --url 'https://api.datacommons.org/node/property-values?dcids=""&property=domainIncludes'

response:

{"payload":"{\"\\\"\\\"\":{}}"}

POST

request:

curl --request POST \
  --url https://api.datacommons.org/node/property-values \
  --header 'content-type: application/json' \
  --data '{
    "dcids": [
      ""
    ],
    "property": "domainIncludes"
  }'

response:

{
 "code": 3,
 "message": "invalid DCIDs []",
 "details": [
  {
   "@type": "type.googleapis.com/google.rpc.DebugInfo",
   "stackEntries": [],
   "detail": "internal"
  }
 ]
}

moved to buganizer