IntersectMBO / govtool

🔩 GovTool and utilities monorepo.
https://gov.tools
Apache License 2.0
14 stars 9 forks source link

[test-stack] No Governance Actions are displayed #1651

Closed mesudip closed 1 month ago

mesudip commented 3 months ago

On test deployment, no governance actions are displayed.

Context & versions

commit: b85441e15165d473ac5566f74115c0c795ea3b0e link: https://govtool.cardanoapi.io/connected/governance_actions

Backend config

{
  "dbsyncconfig" : {
    "host"     : "postgres",
    "dbname"   : "govtool_dbsync",
    "user"     : "postgres",
    "password" : "------xxx----------",
    "port"     : 5432
  },
  "port" : 8080,
  "host" : "0.0.0.0",
  "cachedurationseconds": 20,
  "sentrydsn": "<redacted>",
  "metadatavalidationhost": "http://metadata-validation",
  "metadatavalidationport": 3000,
  "metadatavalidationmaxconcurrentrequests": 10
}

Backend logs

[ec2-user@ip-10-0-1-213 ~]$ docker logs 260b73dd5e64 | tail -n 30
listening on Host "0.0.0.0":8080
  requestVersion       = HTTP/1.1
  proxySecureMode      = ProxySecureWithConnect
}
 ConnectionTimeout
Failed to validate metadata for URL: http://cool.stuff with error: HttpExceptionRequest Request {
  host                 = "metadata-validation"
  port                 = 3000
  secure               = False
  requestHeaders       = [("Content-Type","application/json")]
  path                 = "/validate"
  queryString          = ""
  method               = "POST"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
  proxySecureMode      = ProxySecureWithConnect
}
 ConnectionTimeout
Failed to validate metadata for URL: https://raw.githubusercontent.com/wafflepool-cardano/drep-demo/main/Dim_Rep_Sum.jsonld with error: HttpExceptionRequest Request {
  host                 = "metadata-validation"
  port                 = 3000
  secure               = False
  requestHeaders       = [("Content-Type","application/json")]
  path                 = "/validate"
  queryString          = ""
  method               = "POST"
  proxy                = Nothing
  rawBody              = False
[ec2-user@ip-10-0-1-213 ~]$ docker exec -it 260b73dd5e64 curl metadata-validation:3000/validate -XPOST \
 -d '{"url":"https://raw.githubusercontent.com/wafflepool-cardano/drep-demo/main/Dim_Rep_Sum.jsonld"}' \
 -H 'content-type:application/json';echo;
{"status":"INCORRECT_FORMAT","valid":false}
[ec2-user@ip-10-0-1-213 ~]$ 
mesudip commented 3 months ago

Maybe related: https://github.com/IntersectMBO/govtool/issues/1623

MSzalowski commented 3 months ago

Please refresh the stack. Recent backend version isn't calling the metadata-validation service - this service is called directly by frontend

mesudip commented 3 months ago

This has been fixed in https://github.com/IntersectMBO/govtool/pull/1666