{"action":"opened","issue":{"url":"https://api.github.com/repos/opendatakit/central-backend/issues/135","repository_url":"https://api.github.com/repos/opendatakit/central-backend","labels_url":"https://api.github.com/repos/opendatakit/central-backend/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/opendatakit/central-backend/issues/135/comments","events_url":"https://api.github.com/repos/opendatakit/central-backend/issues/135/events","html_url":"https://github.com/opendatakit/central-backend/issues/135","id":366980535,"node_id":"MDU6SXNzdWUzNjY5ODA1MzU=","number":135,"title":"non-integer ID input results in SQL parse 500 response","user":{"login":"clint-tseng","id":117762,"node_id":"MDQ6VXNlcjExNzc2Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/117762?v=4","gravatar_id":"","url":"https://api.github.com/users/clint-tseng","html_url":"https://github.com/clint-tseng","followers_url":"https://api.github.com/users/clint-tseng/followers","following_url":"https://api.github.com/users/clint-tseng/following{/other_user}","gists_url":"https://api.github.com/users/clint-tseng/gists{/gist_id}","starred_url":"https://api.github.com/users/clint-tseng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clint-tseng/subscriptions","organizations_url":"https://api.github.com/users/clint-tseng/orgs","repos_url":"https://api.github.com/users/clint-tseng/repos","events_url":"https://api.github.com/users/clint-tseng/events{/privacy}","received_events_url":"https://api.github.com/users/clint-tseng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-04T21:37:04Z","updated_at":"2018-10-04T21:37:04Z","closed_at":null,"author_association":"MEMBER","body":"as mentioned by akshay on slack:\r\n\r\n```\r\ncurl -X DELETE \\\r\n  http://localhost:8383/v1/field-keys/324fdsd \\\r\n  -H 'Authorization: Bearer <cut>'\r\n```\r\n\r\nresults in \r\n\r\n```\r\n{ error: invalid input syntax for integer: \"324fdsd\"\r\n    at Connection.parseE (F:\\Akshay\\wGit\\central-backend\\node_modules\\pg\\lib\\connection.js:545:11)\r\n    at Connection.parseMessage (F:\\Akshay\\wGit\\central-backend\\node_modules\\pg\\lib\\connection.js:370:19)\r\n    at Socket.<anonymous> (F:\\Akshay\\wGit\\central-backend\\node_modules\\pg\\lib\\connection.js:113:22)\r\n    at emitOne (events.js:116:13)\r\n    at Socket.emit (events.js:211:7)\r\n    at addChunk (_stream_readable.js:263:12)\r\n    at readableAddChunk (_stream_readable.js:250:11)\r\n    at Socket.Readable.push (_stream_readable.js:208:10)\r\n    at TCP.onread (net.js:597:20)\r\n  name: 'error',\r\n  length: 97,\r\n  severity: 'ERROR',\r\n  code: '22P02',\r\n  detail: undefined,\r\n  hint: undefined,\r\n  position: undefined,\r\n  internalPosition: undefined,\r\n  internalQuery: undefined,\r\n  where: undefined,\r\n  schema: undefined,\r\n  table: undefined,\r\n  column: undefined,\r\n  dataType: undefined,\r\n  constraint: undefined,\r\n  file: 'numutils.c',\r\n  line: '106',\r\n  routine: 'pg_atoi' }\r\n```\r\n\r\nthis should be solvable with an addition for `22P02` to the sql error translation layer."}}
{"actor":{"display_login":"clint-tseng"}}