serverless 로컬 디버깅 방법
1. handler.js callback() 필드 중 body 의 값 Type은 String 이어야만 함. 만약 다른 형식을 지정하면 postman 같은 툴에서 502 Internal Server Error 를 만나게 됨. module.export.run = (event, context, callback) => { return callback(null, { statusCode: 200, headers: { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Credentials': true }, body: event }); }; 2. postman 에서 api uri 로 호출 Body > raw > application/json { “foo": “bar..
웹프로그래밍/NodeJS
2019. 3. 31. 23:33
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Linux
- IE
- macos
- nginx
- classic asp
- Android
- JSON
- JQuery
- Prototype
- CSS
- laravel
- iphone
- 한글
- centos
- PHP
- Debug
- git
- Docker
- javascript
- 워드프레스
- iis
- sencha touch
- ASP
- nodejs
- API
- mssql
- Mac
- 안드로이드
- Wordpress
- IOS
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함