Skip to content

PBS-GO: Cannot correctly unmarshal account_defaults.hooks.modules from pbs.yaml #2839

Open
@Peiling-Ding

Description

I tried to run the ORTB2 Blocking module with following config:

account_defaults:
  hooks:
    modules:  
      prebid:
        ortb2blocking:  |
          {
            "attributes" {
              "badv": {
                "enforce_blocks": true,
                "blocked_adomain": [
                  "example.com"
                ]
              }
            }
          }

Expected: Module can be started with correct configs
Actual: Got following error

F0612 11:04:46.601939   33928 main.go:42] Configuration could not be loaded or did not pass validation: viper failed to unmarshal app config: 2 error(s) decoding:

* cannot parse 'account_defaults.hooks.modules[prebid][ortb2blocking][0]' as uint: strconv.ParseUint: parsing "{\n  \"attributes\" {\n    \"badv\": {\n      \"enforce_blocks\": true": invalid syntax
* cannot parse 'account_defaults.hooks.modules[prebid][ortb2blocking][1]' as uint: strconv.ParseUint: parsing "\n      \"blocked_adomain\": [\n        \"example.com\"\n      ]\n    }\n  }\n}\n": invalid syntax

Metadata

Assignees

Labels

Type

No type

Projects

  • Status

    Ready for Dev

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions