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 2019/11/22 00:50:46 UTC
[GitHub] [trafficcontrol] mhoppa edited a comment on issue #4125: Rewrite
users/register to Go
mhoppa edited a comment on issue #4125: Rewrite users/register to Go
URL: https://github.com/apache/trafficcontrol/pull/4125#issuecomment-557338436
**Request**
```POST https://127.0.0.1:8443/api/1.4/users/register```
**Body**
```
{
"role":1,
"tenantId":1,
"email":"test@gmail.com"
}
```
**Response**
```
{
"alerts": [
{
"text": "decoding: json: cannot unmarshal object into Go value of type api.ParseValidator",
"level": "error"
}
]
}
```
**Resp Headers**
```
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Set-Cookie, Cookie
Access-Control-Allow-Methods: POST,GET,OPTIONS,PUT,DELETE
Access-Control-Allow-Origin: *
Content-Encoding: gzip
Content-Type:application/json
Set-Cookie: mojolicious=... Path=/; Expires=Fri, 22 Nov 2019 01:46:10 GMT; Max-Age=3600; HttpOnly
Whole-Content-Sha512: /E/Bj+NptZRI6Yp8wbGG49hxZ/3mVfbOzEPh+AbnLhlqRemI+nufZQCbKF4xmaOEee0tR8Tp+LeQpsu+Y23QqA==
X-Server-Name: traffic_ops_golang/
Date: Fri, 22 Nov 2019 00:46:10 GMT
Content-Length: 126
```
**Log message from TO**
```
DEBUG: api.go:149: 2019-11-21T17:46:10.813635-07:00: decoding: json: cannot unmarshal object into Go value of type api.ParseValidator
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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