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
- macos
- mssql
- Linux
- Mac
- Debug
- JSON
- sencha touch
- JQuery
- 안드로이드
- Docker
- nodejs
- centos
- CSS
- Android
- ASP
- IE
- git
- 한글
- IOS
- Wordpress
- PHP
- iphone
- laravel
- 워드프레스
- classic asp
- nginx
- javascript
- Prototype
- iis
- API
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함