{"action":"opened","issue":{"url":"https://api.github.com/repos/artmanager/artmanager-api/issues/4","repository_url":"https://api.github.com/repos/artmanager/artmanager-api","labels_url":"https://api.github.com/repos/artmanager/artmanager-api/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/artmanager/artmanager-api/issues/4/comments","events_url":"https://api.github.com/repos/artmanager/artmanager-api/issues/4/events","html_url":"https://github.com/artmanager/artmanager-api/issues/4","id":155630498,"number":4,"title":"Falha em cadastro de produto","user":{"login":"IcaroBichir","id":11305787,"avatar_url":"https://avatars.githubusercontent.com/u/11305787?v=3","gravatar_id":"","url":"https://api.github.com/users/IcaroBichir","html_url":"https://github.com/IcaroBichir","followers_url":"https://api.github.com/users/IcaroBichir/followers","following_url":"https://api.github.com/users/IcaroBichir/following{/other_user}","gists_url":"https://api.github.com/users/IcaroBichir/gists{/gist_id}","starred_url":"https://api.github.com/users/IcaroBichir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IcaroBichir/subscriptions","organizations_url":"https://api.github.com/users/IcaroBichir/orgs","repos_url":"https://api.github.com/users/IcaroBichir/repos","events_url":"https://api.github.com/users/IcaroBichir/events{/privacy}","received_events_url":"https://api.github.com/users/IcaroBichir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/artmanager/artmanager-api/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"gustavosk","id":10901438,"avatar_url":"https://avatars.githubusercontent.com/u/10901438?v=3","gravatar_id":"","url":"https://api.github.com/users/gustavosk","html_url":"https://github.com/gustavosk","followers_url":"https://api.github.com/users/gustavosk/followers","following_url":"https://api.github.com/users/gustavosk/following{/other_user}","gists_url":"https://api.github.com/users/gustavosk/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavosk/subscriptions","organizations_url":"https://api.github.com/users/gustavosk/orgs","repos_url":"https://api.github.com/users/gustavosk/repos","events_url":"https://api.github.com/users/gustavosk/events{/privacy}","received_events_url":"https://api.github.com/users/gustavosk/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-05-19T00:27:09Z","updated_at":"2016-05-19T00:27:09Z","closed_at":null,"body":"* Application log\r\n'''\r\nRequest URL:http://api.artmanager.com.br/product\r\nRequest Method:POST\r\nStatus Code:504 Gateway Time-out\r\nResponse Headers\r\nHost:api.artmanager.com.br\r\nOrigin:http://localhost:8100\r\nPragma:no-cache\r\nReferer:http://localhost:8100/\r\nx-access-token:**********\r\nRequest Payload\r\nview parsed\r\n{\"id_supplier\":\"1\",\"name\":\"produto\",\"describe\":\"teste\",\"id_product_category\":\"1\",\"size\":0.01,\"weight\":0.01,\"cost\":0.01,\"sale_cost\":0.01,\"quantity\":1}\r\n'''\r\n\r\n* Api log\r\n'''\r\nAuthenticationService - ValidateToken - Receive request\r\nRoute: /product\r\nFindOne Product\r\nExecuting (default): SELECT \"id\", \"id_product_category\", \"id_supplier\", \"ds_name\", \"ds_size\", \"ds_weight\", \"ds_describe\", \"vl_cost\", \"vl_sale_cost\", \"nr_quantity\" FROM \"tb_product\" AS \"tb_product\" WHERE \"tb_p\r\nroduct\".\"ds_name\" = 'produto' AND \"tb_product\".\"ds_size\" = 0.01 AND \"tb_product\".\"ds_weight\" = 0.01 AND \"tb_product\".\"ds_describe\" = 'teste' LIMIT 1;\r\nUnhandled rejection SequelizeDatabaseError: operator does not exist: character varying = numeric\r\n    at Query.formatError (/home/artmanager/artmanager-api/node_modules/sequelize/lib/dialects/postgres/query.js:357:14)\r\n    at null.<anonymous> (/home/artmanager/artmanager-api/node_modules/sequelize/lib/dialects/postgres/query.js:88:19)\r\n    at emitOne (events.js:77:13)\r\n    at emit (events.js:169:7)\r\n    at Query.handleError (/home/artmanager/artmanager-api/node_modules/pg/lib/query.js:108:8)\r\n    at null.<anonymous> (/home/artmanager/artmanager-api/node_modules/pg/lib/client.js:171:26)\r\n    at emitOne (events.js:77:13)\r\n    at emit (events.js:169:7)\r\n    at Socket.<anonymous> (/home/artmanager/artmanager-api/node_modules/pg/lib/connection.js:109:12)\r\n    at emitOne (events.js:77:13)\r\n    at Socket.emit (events.js:169:7)\r\n    at readableAddChunk (_stream_readable.js:146:16)\r\n    at Socket.Readable.push (_stream_readable.js:110:10)\r\n    at TCP.onread (net.js:523:20)\r\nAuthenticationService - ValidateToken - Receive request\r\nRoute: /product\r\nAuthenticationService - ValidateToken - Receive request\r\nRoute: /client\r\nExecuting (default): SELECT \"id\", \"ds_name\", \"ds_cpf_cnpj\", \"ds_email\" FROM \"tb_client\" AS \"tb_client\";\r\n'''\r\n\r\n- Provavelmente é o ''produto'' que está em pt_Br"}}