curl --location --request POST https 45 80 70 88 api user login --head

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
curl --location --request POST 'https://45.80.70.88/api/1.0/user/login' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE1ODU2MDIyMDMsImV4cCI6MTU4NTYwOTQwMywicm9sZXMiOlsiUk9MRV9VU0VSIiwiUk9MRV9BUEkiXSwidXNlcm5hbWUiOiJhcGkifQ.c4A8OInS2VJC3r5KhfE9rDrzBerHSSgr56tkCtpLorNqDezxebxCt4us6TmB3_U4D9IdT-4d_YzLLqubgFMg26qsypZPfMiiC47XqVZrp9GxMn-dHbi72Z38Tsp5X04EG4DU1m36d5GcRQ0H6oov49rkfpckN5oEY5sgygrvfmfApkKU8DVxUZW_Zbakl_p6PjkaOB-xURnvOzZB5Zo1rN9LPFJjSsmAQc016gjfRsr_pb59oCSj01Iu7BXPrwNsN2n4YftEaQEMUZMADsCFDueCvjpyx4dhQgjgPXpTtImYiyTHQ6jtr_RUGV_qc2vxObovzHk6jiOX_RFmlcHEPH6ntL1mGDJS_idBvIJQIeDAm9qKMa6G7uZ3RtT_vI1xZeQg0wUAzI92Bz-lMeI7ytCmscYtXoZOXord7wWwUgfkyzwvkFXIeu68E2ma9VpHg19iyQqN_2cZO--yy72zQiA1o5DSrwdGe3wHZ90hpaqDmIYI8NPFgH5YNXn4rDr-qgBQ9Apa5FpPaD5PR8Cdtvq8ddz6Z5fPf_uJDsB7Mk-vkZnaVDh9Lb2C4mt55OPdwe68G5AQ1KyJKRwKP_w3L5hCKdSd0y2M_l_Y90-_8KuGsrLH2ClQI4fNoofIE_IkAboFURzWzMLaqfFLwUoqWJ-PUOE-CUL0fMDiOnq0zWc' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'email=testsubscriber@email.com1' \
--data-urlencode 'password=654321'
RESPONSE:
{
"type": "https://tools.ietf.org/html/rfc2616#section-10",
"title": "An error occurred",
"status": 500,
"detail": "Call to a member function getIsActive() on null",
"class": "Error",
"trace": [
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "",
"file": "/home/summary/www/summary/releases/20200321230507/src/Components/FormHandlers/UserHandler.php",
"line": 151,
"args": []
},
{
"namespace": "App\\Components\\FormHandlers",
"short_class": "UserHandler",
"class": "App\\Components\\FormHandlers\\UserHandler",
"type": "->",
"function": "handleLogin",
"file": "/home/summary/www/summary/releases/20200321230507/src/Api/First/Controller/UserController.php",
"line": 306,
"args": [
[
"object",
"Symfony\\Component\\Form\\Form"
]
]
},
{
"namespace": "App\\Api\\First\\Controller",
"short_class": "UserController",
"class": "App\\Api\\First\\Controller\\UserController",
"type": "->",
"function": "login",
"file": "/home/summary/www/summary/releases/20200321230507/vendor/symfony/http-kernel/HttpKernel.php",
"line": 146,
"args": []
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handleRaw",
"file": "/home/summary/www/summary/releases/20200321230507/vendor/symfony/http-kernel/HttpKernel.php",
"line": 68,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"integer",
1
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handle",
"file": "/home/summary/www/summary/releases/20200321230507/vendor/symfony/http-kernel/Kernel.php",
"line": 201,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"integer",
1
],
[
"boolean",
true
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "Kernel",
"class": "Symfony\\Component\\HttpKernel\\Kernel",
"type": "->",
"function": "handle",
"file": "/home/summary/www/summary/releases/20200321230507/public/index.php",
"line": 25,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
]
]
}
]
}