You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/07/09 20:39:36 UTC

[GitHub] dangogh opened a new issue #2520: TO Go API: deliveryservices_regexes gets 500 error

dangogh opened a new issue #2520: TO Go API: deliveryservices_regexes gets 500 error
URL: https://github.com/apache/trafficcontrol/issues/2520
 
 
   After loading Kabletown data (`cd /opt/traffic_ops/app; ./bin/db/setup_kabletown.pl`),  I hit the `GET api/1.3/deliveryservices_regexes`  endpoint and got a 500 error with this return JSON:
   
   ```
   {
     "alerts": [
       {
         "text": "querying: sql: Scan error on column index 1: converting driver.Value type <nil> (\"<nil>\") to a int: invalid syntax",
         "level": "error"
       }
     ]
   }
   ```
   
   Hitting the Perl endpoint instead,  I get this (cut for brevity):
   ```
   {
     "response": [
       {
         "regexes": [
           {
             "pattern": ".*\\.images\\..*",
             "setNumber": 0,
             "type": "HOST_REGEXP"
           }
         ],
         "dsName": "cdl-c2"
       },
   ...
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services