Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when trying to organize a skating game or Mercator or Bockesprong #50

Open
fede-rodes opened this issue Mar 1, 2019 · 0 comments

Comments

@fede-rodes
Copy link
Member

https://api.sportyspots.com/graphql?operationName=spots&query=%20%20query%20spots(%0A%20%20%20%20%24limit%3A%20Int%2C%0A%20%20%20%20%24offset%3A%20Int%2C%0A%20%20%20%20%24sports__ids%3A%20%5BID%5D%2C%0A%20%20%20%20%24distance%3A%20String%2C%0A%20%20)%20%7B%0A%20%20%20%20spots(%0A%20%20%20%20%20%20is_verified%3A%20true%2C%0A%20%20%20%20%20%20limit%3A%20%24limit%2C%0A%20%20%20%20%20%20offset%3A%20%24offset%2C%0A%20%20%20%20%20%20sports__ids%3A%20%24sports__ids%2C%0A%20%20%20%20%20%20distance%3A%20%24distance%2C%0A%20%20%20%20)%20%7B%0A%20%20%20%20%20%20id%0A%20%20%20%20%20%20name%0A%20%20%20%20%20%20sports%20%7B%0A%20%20%20%20%20%20%20%20id%0A%20%20%20%20%20%20%20%20name%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D&variables=%7B%20%22offset%22%3A%200%2C%20%22limit%22%3A%2010%2C%20%22sports__ids%22%3A%20%5B%227%22%5D%2C%20%22distance%22%3A%20%2220000%3A52.3547321%3A4.8284118%22%20%7D

03-01 21:42:40.638  2903  3309 I ReactNativeJS: 'SET SPOT RESPONSE', { duration: 104,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:   problem: 'CLIENT_ERROR',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:   originalError: 
03-01 21:42:40.638  2903  3309 I ReactNativeJS:    { [Error: Request failed with status code 400]
03-01 21:42:40.638  2903  3309 I ReactNativeJS:      config: 
03-01 21:42:40.638  2903  3309 I ReactNativeJS:       { adapter: [Function: xhrAdapter],
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         transformRequest: { '0': [Function: transformRequest] },
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         transformResponse: { '0': [Function: transformResponse] },
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         timeout: 10000,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         xsrfCookieName: 'XSRF-TOKEN',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         xsrfHeaderName: 'X-XSRF-TOKEN',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         maxContentLength: -1,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         validateStatus: [Function: validateStatus],
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         headers: 
03-01 21:42:40.638  2903  3309 I ReactNativeJS:          { Accept: 'application/json',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'Content-Type': 'application/json',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'Cache-Control': 'no-cache',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            vary: '',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            cookie: null,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            Authorization: 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0OSwidXVpZCI6IjQwODlkYzJkLTJlMWQtNDM0Ny05YTc1LTY3ZWYyZTE3MjQzYSIsInVzZXJuYW1lIjoiZmVkZSIsImV4cCI6MTU4Mjk2NjA1MSwiZW1haWwiOiJmZWRlcm9kZXNAZ21haWwuY29tIn0.KjXQFedFRw0cl1OzeEJKwNFdgQ0J8YSYMqEGKnehOHc' },
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         method: 'post',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         baseURL: 'https://api.sportyspots.com/api',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         url: 'https://api.sportyspots.com/api/games/f3e5f6c8-1eca-42b6-99c7-ca7997c443de/spot/',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         data: '{"uuid":"bde72f88-d7ae-4ad1-aa78-449b8a804a2c"}' },
03-01 21:42:40.638  2903  3309 I ReactNativeJS:      request: 
03-01 21:42:40.638  2903  3309 I ReactNativeJS:       { UNSENT: 0,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         OPENED: 1,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         HEADERS_RECEIVED: 2,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         LOADING: 3,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         DONE: 4,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         readyState: 4,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         status: 400,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         timeout: 10000,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         withCredentials: true,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         upload: {},
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _aborted: false,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _hasError: false,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _method: 'POST',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _response: '["Invalid Spot. Spot being assigned doesnt have the already associated sport"]',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _url: 'https://api.sportyspots.com/api/games/f3e5f6c8-1eca-42b6-99c7-ca7997c443de/spot/',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _timedOut: false,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _trackingName: 'unknown',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _incrementalEvents: false,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         responseHeaders: 
03-01 21:42:40.638  2903  3309 I ReactNativeJS:          { 'x-content-type-options': 'nosniff',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'x-frame-options': 'DENY',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            vary: 'Accept, Origin',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'content-length': '78',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'x-xss-protection': '1; mode=block',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'content-type': 'application/json',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            allow: 'GET, POST, HEAD, OPTIONS',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            date: 'Fri, 01 Mar 2019 20:42:40 GMT',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'strict-transport-security': 'max-age=60; includeSubDomains',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            server: 'nginx/1.10.3 (Ubuntu)' },
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _requestId: null,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _cachedResponse: undefined,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _headers: 
03-01 21:42:40.638  2903  3309 I ReactNativeJS:          { accept: 'application/json',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'content-type': 'application/json',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'cache-control': 'no-cache',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            vary: '',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            cookie: 'null',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            authorization: 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0OSwidXVpZCI6IjQwODlkYzJkLTJlMWQtNDM0Ny05YTc1LTY3ZWYyZTE3MjQzYSIsInVzZXJuYW1lIjoiZmVkZSIsImV4cCI6MTU4Mjk2NjA1MSwiZW1haWwiOiJmZWRlcm9kZXNAZ21haWwuY29tIn0.KjXQFedFRw0cl1OzeEJKwNFdgQ0J8YSYMqEGKnehOHc' },
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _responseType: '',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _sent: true,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _lowerCaseResponseHeaders: 
03-01 21:42:40.638  2903  3309 I ReactNativeJS:          { 'x-content-type-options': 'nosniff',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'x-frame-options': 'DENY',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            vary: 'Accept, Origin',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'content-length': '78',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'x-xss-protection': '1; mode=block',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'content-type': 'application/json',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            allow: 'GET, POST, HEAD, OPTIONS',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            date: 'Fri, 01 Mar 2019 20:42:40 GMT',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'strict-transport-security': 'max-age=60; includeSubDomains',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            server: 'nginx/1.10.3 (Ubuntu)' },
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         _subscriptions: [],
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         responseURL: 'https://api.sportyspots.com/api/games/f3e5f6c8-1eca-42b6-99c7-ca7997c443de/spot/' },
03-01 21:42:40.638  2903  3309 I ReactNativeJS:      response: 
03-01 21:42:40.638  2903  3309 I ReactNativeJS:       { data: [ 'Invalid Spot. Spot being assigned doesnt have the already associated sport' ],
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         status: 400,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         statusText: undefined,
03-01 21:42:40.638  2903  3309 I ReactNativeJS:         headers: 
03-01 21:42:40.638  2903  3309 I ReactNativeJS:          { 'x-content-type-options': 'nosniff',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'x-frame-options': 'DENY',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            vary: 'Accept, Origin',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'content-length': '78',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'x-xss-protection': '1; mode=block',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            'content-type': 'application/json',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            allow: 'GET, POST, HEAD, OPTIONS',
03-01 21:42:40.638  2903  3309 I ReactNativeJS:            date: 'Fri, 01 Mar 2
03-01 21:42:40.639  2903  3309 I ReactNativeJS: { [TypeError: undefined is not a function (evaluating 'arrayError.map(function (errorMsg) {
03-01 21:42:40.639  2903  3309 I ReactNativeJS:         return curateErrorMsg(errorMsg);
03-01 21:42:40.639  2903  3309 I ReactNativeJS:       })')]
03-01 21:42:40.639  2903  3309 I ReactNativeJS:   line: 284338,
03-01 21:42:40.639  2903  3309 I ReactNativeJS:   column: 40,
03-01 21:42:40.639  2903  3309 I ReactNativeJS:   sourceURL: 'http://10.0.3.2:8081/index.delta?platform=android&dev=true&minify=false' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant