These are chat archives for fossasia/open-event-server

5th
Aug 2017
Dilpreet Singh
@geekyd
Aug 05 2017 03:54

Hey guys
I was trying to do a POST request for tracks but i'm getting error 500

Endpoint
v1/tracks

Request

{
   "data":{
      "attributes":{
         "name":null,
         "color":"#263238",
         "description":null,
         "font-color":null
      },
      "relationships":{
         "event":{
            "data":{
               "type":"event",
               "id":"173"
            }
         }
      },
      "type":"track"
   }
}
Dilpreet Singh
@geekyd
Aug 05 2017 04:10
It give 500 even if the font-color is set to a value eg #000000
Piyush Agrawal
@poush
Aug 05 2017 04:40
Is there any error message as well? Or just 500
Dilpreet Singh
@geekyd
Aug 05 2017 04:44
Here is the response
{
   "errors":[
      {
         "detail":"Unknown error",
         "source":{
            "pointer":""
         },
         "status":500,
         "title":"Unknown error"
      }
   ],
   "jsonapi":{
      "version":"1.0"
   }
}
Medo
@magdalenesuo
Aug 05 2017 07:22
@geekyd Hey. you cannot change font-color for tracks, they are automatically set either black/white depending on the color field.
Piyush Agrawal
@poush
Aug 05 2017 07:22
@magdalenesuo This issue has been fixed. the font-color attribute was not dropping from request object.
Dilpreet Singh
@geekyd
Aug 05 2017 07:23
Okay, I will not set it while making a request. Thanks
Medo
@magdalenesuo
Aug 05 2017 07:25

This issue has been fixed. the font-color attribute was not dropping from request object.

:thumbsup:

Okay, I will not set it while making a request. Thanks

@geekyd You can set it while making request now with the fix but it wont get updated.

Dilpreet Singh
@geekyd
Aug 05 2017 07:28
@magdalenesuo Okay!
Will the color be set by the frontend or the server?
Piyush Agrawal
@poush
Aug 05 2017 07:28
color can be provided by frontend
but font-color will be set by server only
Dilpreet Singh
@geekyd
Aug 05 2017 07:28
Sorry I meant font-color
Okay
Piyush Agrawal
@poush
Aug 05 2017 07:29
server will ignore any value sent to font-color
Medo
@magdalenesuo
Aug 05 2017 07:29
:+1:
Dilpreet Singh
@geekyd
Aug 05 2017 13:18
Hello I have created an issue about microlocations fossasia/open-event-orga-server#4246 please check. Thanks
Mario Behling
@mariobehling
Aug 05 2017 17:27
@magdalenesuo @enigmaeth @poush @shubham-padia We still cannot find this weeks blog post from you on the spreadsheet. Please add it now.