Giter Site home page Giter Site logo

shlee322 / delivery-tracker Goto Github PK

View Code? Open in Web Editor NEW
572.0 19.0 183.0 720 KB

๐Ÿšš Delivery and Shipping Tracking Service

Home Page: https://tracker.delivery

License: Other

JavaScript 1.47% Dockerfile 0.36% TypeScript 98.18%
shipping tracking delivery tracker

delivery-tracker's Introduction

Delivery Tracker

Delivery and Shipping Tracking Service

Usage

Cloud (Managed Service)

Visit : https://tracker.delivery

Self-Hosted

Setting Up the Development Environment

Delivery Tracker can be set up in local development environments and is also readily available for setup through GitHub Codespaces.

Open in GitHub Codespaces

Follow the instructions below for GitHub Codespaces:

  1. Click the "Open in GitHub Codespaces" button above to create a new Codespace.
  2. Once in your Codespace terminal, enter pnpm install to install the necessary dependencies.
  3. In GitHub Codespaces, navigate to the "Run and Debug" section from the sidebar and then click the "Run" button for "@delivery-tracker/server" to launch the server.
  4. The service URL can be accessed via the Ports panel at the bottom of the GitHub Codespaces interface.

Deploying Self-Hosted Services

See Dockerfile

Additional Information

License

  • Please read the LICENSE file.

Contact

Project Structure

  • packages/api : GraphQL API
  • packages/core : Scraper code
  • packages/cli : A Command Line Interface (CLI) tool that uses the execute function from packages/api.
  • packages/http : A self-hosted GraphQL HTTP server that uses the execute function from packages/api.

Request additional carriers

See https://tracker.delivery/request-additional-carrier

delivery-tracker's People

Contributors

actumn avatar cimfalab avatar dependabot[bot] avatar devxoul avatar ejoonie avatar falsy avatar greenun avatar harusame3144 avatar kanghw1103 avatar kimnagui avatar magyul avatar nerossi avatar shlee322 avatar zinozzino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

delivery-tracker's Issues

๋กฏ๋ฐํƒ๋ฐฐ ์šด์†ก ์‹œ์ž‘ ์ „ ์—๋Ÿฌ

๋กฏ๋ฐํƒ๋ฐฐ API ์‚ฌ์šฉ์‹œ ๊ทนํžˆ ์ผ๋ถ€ ๊ฒฝ์šฐ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ ๋ฐœ์ƒ
Cannot read property 'textContent' of undefined

์šด์†ก ์‹œ์ž‘ ์ „ ์กฐํšŒ ์‹œ ๋ฐœ์ƒํ•˜๋Š” ๊ฒƒ์œผ๋กœ ์ถ”์ธก (ํ™•์ธ ํ•„์š”)

์šฐ์ฒด๊ตญํƒ๋ฐฐ ์˜ค๋ฅ˜ ๋ฉ”์„ธ์ง€

1~2์ผ์ „ ๋ถ€ํ„ฐ ํƒ๋ฐฐ์กฐํšŒ๊ฐ€ ์•ˆ๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
๋ฐฐ์†ก์กฐํšŒ API๋กœ ์‚ฌ์šฉ์ค‘์ธ๋ฐ ๊ฒฐ๊ณผ๊ฐ’์— ๋„๋‹ฌํ•˜์ง€ ๋ชปํ•˜๊ณ 
{
"message": "ํ•ด๋‹น ์šด์†ก์žฅ์ด ์กด์žฌํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค."
}
๋ผ๋Š” ๋ฉ”์„ธ์ง€๋ฅผ ์ถœ๋ ฅ๋ฉ๋‹ˆ๋‹ค.
๊ฐœ๋ณ„์ ์œผ๋กœ ์šฐ์ฒด๊ตญ ์ž์ฒด ์กฐํšŒ๋Š” ๋˜๊ณ ์š”.

ํ•œ์ง„ํƒ๋ฐฐ๊ฐ€ ์ด์ƒํ•˜๊ฒŒ ์•ˆ๋˜๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค~

https://www.hanjin.co.kr/kor/CMS/DeliveryMgr/WaybillResult.do?mCode=MN038&wblnum=510683980391&schLang=KR&wblnumText=

๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ฐฐ์†ก์™„๋ฃŒ ๋˜์—ˆ๋Š”๋ฐ~

์–ธ์  ๊ฐ€๋ถ€ํ„ฐ

connect ECONNREFUSED 211.210.94.28:443

๋ผ๊ณ  ๋‚˜์˜ค๋ฉด์„œ ํ•œ์ง„์ด ํŠธ๋ž™ํ‚น์ด ์•ˆ๋˜๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค ^^

๋กฏ๋ฐ๋Š” ๋˜ ์ž˜๋˜๋”๋ผ๊ตฌ์š”~

publish npm package

npm install๋กœ ์„ค์น˜ํ• ์ˆ˜์žˆ๊ฒŒ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

return null when waybill invalid or not found

์•ˆ๋“œ๋กœ์ด๋“œ์—์„œ Retrofit2๋ฅผ ์ด์šฉํ•˜์—ฌ api๋ฅผ ์ด์šฉํ•˜๋Š”๋ฐ ์ž˜๋ชป๋œ ์šด์†ก์žฅ์ด๋‚˜, ์•„์ง ๋“ฑ๋ก์ด ๋˜์ง€ ์•Š์€ ์šด์†ก์žฅ์— ๋Œ€ํ•ด์„œ๋Š” return์ด null๋กœ ๋‚˜์˜ต๋‹ˆ๋‹ค. ํ˜น์‹œ API์—์„œ ๋ฐ˜ํ™˜ํ•ด ์ฃผ์ง€ ์•Š๋Š”๊ฑธ๊นŒ ํ•ด์„œ ์งˆ๋ฌธ ๋‚จ๊น๋‹ˆ๋‹ค.

ํ˜„์žฌ ์šฐ์ฒด๊ตญํƒ๋ฐฐ ๋ชจ๋“  ์šด์†ก์žฅ ๋ฒˆํ˜ธ๊ฐ€ ์กฐํšŒ๊ฐ€ ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

ํ˜„์žฌ ์šฐ์ฒด๊ตญํƒ๋ฐฐ ๋ชจ๋“  ์šด์†ก์žฅ ๋ฒˆํ˜ธ๊ฐ€ ์กฐํšŒ๊ฐ€ ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

{"message":"ํ•ด๋‹น ์šด์†ก์žฅ์ด ์กด์žฌํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค."}

๋ผ๊ณ  ๋ชจ๋“  ์šด์†ก์žฅ๋ฒˆํ˜ธ๊ฐ€ ์ด๋ ‡๊ฒŒ response ๋ฐ›์Šต๋‹ˆ๋‹ค.

[CJ๋Œ€ํ•œํ†ต์šด] ๋ฐฐ์†ก ์กฐํšŒ๊ฐ€ ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

Delivery Tracker ์„œ๋น„์Šค๋ฅผ ์• ์šฉํ•˜๊ณ  ์žˆ๋Š” ๊ฐœ๋ฐœ์ž์ž…๋‹ˆ๋‹ค.

์‚ฌ์šฉํ•œ ์†ก์žฅ ๋ฒˆํ˜ธ๋Š” 632976615493์ž…๋‹ˆ๋‹ค.

CJ๋Œ€ํ•œํ†ต์šด์˜ ํƒ๋ฐฐ ์กฐํšŒ ์‚ฌ์ดํŠธ(https://www.cjlogistics.com/ko/tool/parcel/tracking)์—์„œ ์กฐํšŒํ•˜๋ฉด ์ •์ƒ์ ์œผ๋กœ ์กฐํšŒ๊ฐ€ ๋˜๋Š”๋ฐ,
Tracker API๋ฅผ ์ด์šฉํ•œ ๋งํฌ(https://apis.tracker.delivery/carriers/kr.cjlogistics/tracks/632976615493)์—์„œ ์กฐํšŒํ•˜๋ฉด ์กฐํšŒ๊ฐ€ ๋˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

ํ™•์ธ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

๋กฏ๋ฐ ํƒ๋ฐฐ state๊ฐ€ at_pickup์œผ๋กœ ๋‚˜์˜ต๋‹ˆ๋‹ค.

๋กฏ๋ฐ ํƒ๋ฐฐ์˜ ๊ฒฝ์šฐ ๋‹ค๋ฅธ ํƒ๋ฐฐ์™€ ๋‹ค๋ฅด๊ฒŒ progressses๊ฐ€ ๋ฐ˜๋Œ€๋กœ ๋‚˜์™€์„œ state๊ฐ€ ๊ฐ€์žฅ ์ฒซ๋ฒˆ์งธ ๋ฐฐ์†ก ๊ณผ์ •์ธ at_pickup์œผ๋กœ ๋‚˜์˜ค๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

2023๋…„ Roadmap

์•ˆ๋…•ํ•˜์„ธ์š”. ๋”œ๋ฆฌ๋ฒ„๋ฆฌ ํŠธ๋ž˜์ปค ๊ฐœ๋ฐœ์ž ์ด์ƒํ˜์ž…๋‹ˆ๋‹ค.

์ทจ๋ฏธ๋กœ ์‹œ์ž‘ํ•œ ํ”„๋กœ์ ํŠธ์ธ๋ฐ ๋งŽ์€ ๋ถ„๋“ค์ด ๊ด€์‹ฌ ๊ฐ€์ ธ์ฃผ์‹œ๊ณ  ์‚ฌ์šฉํ•ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.
๋ช‡๋‹ฌ ๋™์•ˆ ํฐ ์—…๋ฐ์ดํŠธ๊ฐ€ ์—†์—ˆ๋Š”๋ฐ์š”.

์•ž์œผ๋กœ๋Š” ์ฃผ๋ง์— ์‹œ๊ฐ„์„ ๋‚ด์„œ ์ฃผ๊ธฐ์ ์œผ๋กœ ํ”„๋กœ์ ํŠธ๋ฅผ ๊ฐœ์„ ํ•ด๋‚˜๊ฐ€๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค.

2021๋…„2022๋…„2023๋…„์—๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฐœ์„ ์ด ์žˆ์„ ๊ฒƒ์œผ๋กœ ์˜ˆ์ƒ ๋ฉ๋‹ˆ๋‹ค.
์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ์ œ์•ˆ์ด๋‚˜ PR ์€ ์–ธ์ œ๋“ ์ง€ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค.

  • status ์‚ฌ์ดํŠธ ์ œ๊ณต
  • ์•ˆ์ •์ ์ธ API ์„œ๋น„์Šค (cloud version ์•„ํ‚คํ…์ฒ˜ ๊ฐœ์„ )
  • ์ „๋ฐ˜์ ์ธ ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง ๋ฐ ๊ณต์‹ ์›น์‚ฌ์ดํŠธ ๊ฐœ๋ฐœ
  • ์ถ”๊ฐ€์ ์ธ ํƒ๋ฐฐ์‚ฌ ์ถ”๊ฐ€
  • API ๊ฐœ์„  / ์Šคํ‚ค๋งˆ ์ œ๊ณต
  • WebHook ๊ธฐ๋Šฅ (์šด์†ก์žฅ ์ƒํƒœ ๋ณ€๊ฒฝ ์‹œ ๋…ธํ‹ฐ)
  • Proxy ๊ธฐ๋Šฅ

ํŠน์ •์ƒํ™ฉ์—์„œ ๋ฐฐ์†ก์กฐํšŒ๊ฐ€ ์ œ๋Œ€๋กœ ๋˜์ง€ ์•Š๋Š”๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค.

์šด์†ก์žฅ ๋ฒˆํ˜ธ๋Š” ํ•œ์ง„ 506738618960 ์ž…๋‹ˆ๋‹ค.
ํ•œ์ง„ํƒ๋ฐฐ์‚ฌ์ดํŠธ๋‚˜ ๋„ค์ด๋ฒ„์—์„œ๋Š” ๋ฐฐ์†ก์™„๋ฃŒ๋กœ ์ƒํƒœ๊ฐ€ ๋ณ€๊ฒฝ๋˜์—ˆ๋Š”๋Š”๋ฐ
delivery-tracker ์—์„œ๋Š” ๋ฐฐ์†ก์ถœ๋ฐœ๊นŒ์ง€์˜ ์ƒํƒœ๋งŒ ํ‘œ๊ธฐ๋ฉ๋‹ˆ๋‹ค.
ํ•ด๋‹น ์šด์†ก์žฅ ๋ฒˆํ˜ธ๋ฅผ ํ•œ์ง„ํƒ๋ฐฐ์—์„œ ์กฐํšŒํ•ด๋ณด๋‹ˆ, ๋ฐฐ์†ก์™„๋ฃŒ ์‹œ๊ฐ„์ด ๋ฐฐ์†ก์ถœ๋ฐœ์‹œ๊ฐ„๋ณด๋‹ค ๋น ๋ฅด๊ฒŒ
๋‚˜์™€์žˆ๋˜๋ฐ, ์ด๋Ÿฐ๊ฒฝ์šฐ์— ์ œ๋Œ€๋กœ ๊ฒฐ๊ณผ๊ฐ€ ์•ˆ๋‚˜์˜ค๋Š”๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค.

์ž˜๋˜๋˜๊ฒŒ ๊ฐ‘์ž๊ธฐ ์กฐํšŒ๊ฐ€ ์•ˆ๋˜๋„ค์š” cj๋Œ€ํ•œํ†ต์šด์ž…๋‹ˆ๋‹ค

๊ณ ์ƒ์ด ์ •๋ง ๋งŽ์œผ์‹ญ๋‹ˆ๋‹ค ใ… ใ… 

347575800551 ์†ก์žฅ๋ฒˆํ˜ธ๋กœ ํ•˜๋ฉด ์ž˜๋‚˜์˜ค๋Š”๋ฐ

์—ฌ๊ธฐ์„œ๋Š” ์•ˆ๋‚˜์˜ค๋„ค์š” ใ… ใ… 

๋„์™€์ฃผ์‹ญ์‹œ์š”!!

API๋ฅผ ์ด์šฉํ•ด์„œ ์•ฑ ๊ฐœ๋ฐœ ์‹œ ์•ฑ์—์„œ APIํ…Œ์ŠคํŠธ๋Š” ์–ด๋–ป๊ฒŒ ํ•˜๋‚˜์š”?

API๋ฅผ ์ด์šฉํ•ด์„œ ์•ฑ ๊ฐœ๋ฐœ ์‹œ ์•ฑ์—์„œ APIํ…Œ์ŠคํŠธ๋Š” ์–ด๋–ป๊ฒŒ ํ•˜๋‚˜์š”?

์‹ค์ œ ์šด์†ก์žฅ ๋ฒˆํ˜ธ ์ž…๋ ฅํ•˜์—ฌ ํ•ด์•ผํ•˜๋Š” ๊ฑด์ง€,

์•„๋‹ˆ๋ฉด ๋”ฐ๋กœ ํ…Œ์ŠคํŠธ ํ•ด๋ณผ ์ˆ˜ ์žˆ๋Š” ์šด์†ก์žฅ๋ฒˆํ˜ธ๊ฐ€ ์žˆ์–ด

API ํ™•์ธ์„ ํ•  ์ˆ˜ ์žˆ๋Š”๊ฑด์ง€,

API ์ ์šฉ ์‹œ ํ…Œ์ŠคํŠธ๋Š” ์–ด๋–ป๊ฒŒ ํ•ด์•ผํ•˜๋Š” ์ง€ ์•Œ๋ ค์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

kr.logen 404 Error

image

์œ„ ์‚ฌ์ง„์ฒ˜๋Ÿผ ํ˜„์žฌ ๋กœ์  ํƒ๋ฐฐ carrier ์Šคํฌ๋ฆฝํŠธ์— ์žˆ๋Š” url ์€ 404 ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.
http://203.247.141.67/iLOGEN.Web.New/TRACE/TraceDetail.aspx

๋กœ์  ํƒ๋ฐฐ ํƒ๋ฐฐ ๊ฒ€์ƒ‰ ์ฃผ์†Œ๊ฐ€ ์ด์ชฝ์œผ๋กœ ๋ฐ”๋€๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
https://www.ilogen.com/web/personal/tkSearch

503 Error is occurred !

์•ˆ๋…•ํ•˜์„ธ์š”.
๊ทธ๋™์•ˆ ํ›Œ๋ฅญํ•œ ์„œ๋น„์Šค๋ฅผ ์ž˜ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.
์ •๋ง ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.
๊ทธ๋Ÿฐ๋ฐ ์–ด์ œ๋ฐค(1์›” 8์ผ) ๋ถ€ํ„ฐ API 503 ์—๋Ÿฌ๊ฐ€ ๋‚˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
ํ™•์ธ ์š”์ฒญ ๋ถ€ํƒ๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค.
๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

CJํƒ๋ฐฐ ์กฐํšŒ ์•ˆ๋จ

ํƒ๋ฐฐ์‚ฌ์—์„œ ์šด์†ก์žฅ ์กฐํšŒํ•˜๋ฉด ๋˜๋Š”๋ฐ

๋ฐฐ์†ก์กฐํšŒ ํŽ˜์ด์ง€์—์„œ ๋’ค์ง‘ํžŒ ํƒ๋ฐฐ์ฐจ์™€ Cannot read property 'id' of undefined ๋ผ๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ๋– ์š”

DHL ๋ฐฐ์†ก ์กฐํšŒ ๋ฌดํ•œ Loading Error

DHL ๋ฐฐ์†ก ์กฐํšŒ ์‹œ Response๊ฐ€ ์ถœ๋ ฅ๋˜์ง€ ์•Š๊ณ  ๊ณ„์† ๋ฌดํ•œ Loading์ด ๋˜๋„ค์š”, DHL ํšŒ์‚ฌ์˜ ๋ฌธ์ œ์ธ์ง€ ๋˜๋Š” ๋‹ค๋ฅธ ์˜ค๋ฅ˜์ธ์ง€ ํ™•์ธ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ๋ฐฐ์†ก์‚ฌ๋“ค์€ ๋ชจ๋‘ ์ •์ƒ์ ์œผ๋กœ ์ž‘๋™๋˜๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!

Add Carriers (Sprint-1)

Carriers List

  • CJ๋Œ€ํ•œํ†ต์šด (kr.cjlogistics)
  • CU ํŽธ์˜์ ํƒ๋ฐฐ (kr.cupost)
  • CVSnet ํŽธ์˜์ ํƒ๋ฐฐ (kr.cvsnet)
  • Cway Express (kr.cway #24)
  • DHL (de.dhl #36)
  • DHL Global Mail (de.dhl.ecommerce)
  • ECMS Express ()
  • EMS (un.upu.ems #38)
  • Fedex (us.fedex #39)
  • GSI Express (us.gsiexpress)
  • GSMNtoN (kr.gsmnton)
  • i-Parcel (us.i-parcel)
  • SLX (kr.slx #46)
  • TNT Express (nl.tnt #44)
  • UPS (us.ups #40)
  • USPS (us.usps #41)
  • ๊ฑด์˜ํƒ๋ฐฐ (kr.kunyoung #35)
  • ๊ฒฝ๋™ํƒ๋ฐฐ (kr.kdexp #34)
  • ๋Œ€์‹ ํƒ๋ฐฐ (kr.daesin #37)
  • ๋กœ์  ํƒ๋ฐฐ (kr.logen)
  • ๋กฏ๋ฐํƒ๋ฐฐ (kr.lotte)
  • ์„ฑ์›๊ธ€๋กœ๋ฒŒ์นด๊ณ  (kr.swgexp)
  • ์—์–ด๋ณด์ด์ต์Šคํ”„๋ ˆ์Šค (us.airboyexpress)
  • ์šฐ์ฒด๊ตญํƒ๋ฐฐ (kr.epost)
  • ์›ŒํŽ™์Šค์ฝ”๋ฆฌ์•„ (us.warpex)
  • ์ผ์–‘๋กœ์ง€์Šค (kr.ilyanglogis #33)
  • ์ฒœ์ผํƒ๋ฐฐ (kr.chunilps #32)
  • ํŒํ† ์Šค (kr.pantos)
  • ํ•œ์˜์‚ฌ๋ž‘ํƒ๋ฐฐ (kr.hanips #47)
  • ํ•œ์ง„ํƒ๋ฐฐ (kr.hanjin)
  • ํ•ฉ๋™ํƒ๋ฐฐ (kr.hdexp #31)
  • ํ•œ์„œํ˜ธ๋‚จํƒ๋ฐฐ (kr.honamlogis #30)
  • ํ™ˆํ”ฝํƒ๋ฐฐ (kr.homepick #29)

Excepted

  • KGBํƒ๋ฐฐ : ์ž๊ธˆ๋‚œ์œผ๋กœ ์šด์˜ ์ค‘๋‹จ ์ƒํƒœ์œผ๋กœ ํŒŒ์•…๋จ
  • KGL๋„คํŠธ์›์Šค : ํ™ˆํŽ˜์ด์ง€ ๋‚ด์— ๋ฐฐ์†ก์กฐํšŒ ๊ธฐ๋Šฅ์„ ์ฐพ์„ ์ˆ˜ ์—†์Œ
  • ํ•œ๋ฑ์Šค : ํ•œ์ง„ํƒ๋ฐฐ์™€ ํ†ตํ•ฉ
  • ๊ตฟํˆฌ๋Ÿญ : ์‚ฌ์ดํŠธ 500 ์—๋Ÿฌ
  • YJS๊ธ€๋กœ๋ฒŒ(์˜๊ตญ)
  • ์„ธ๋ฐฉ : ๋ฐฐ์†ก์กฐํšŒ ๊ธฐ๋Šฅ ์ฐพ์„ ์ˆ˜ ์—†์Œ
  • ์šฐ๋ฆฌํ•œ๋ฐฉํƒ๋ฐฐ : ์šด์†ก์žฅ ๋ฒˆํ˜ธ ์ทจ๋“๊นŒ์ง€ ๋ณด๋ฅ˜
  • ์€ํ•˜์‰ฌํ•‘ (kr.ieunha) : ์šด์†ก์žฅ ๋ฒˆํ˜ธ ์ทจ๋“๊นŒ์ง€ ๋ณด๋ฅ˜
  • ํ•˜์ดํƒ๋ฐฐ : ์šด์†ก์žฅ ๋ฒˆํ˜ธ ์ทจ๋“๊นŒ์ง€ ๋ณด๋ฅ˜
  • ํ™ˆ์ด๋…ธ๋ฒ ์ด์…˜๋กœ์ง€์Šค

๋ฐฐ์†ก ์กฐํšŒ์‹œ state ์˜ ์ฝ”๋“œ๊ฐ’์€ ์–ด๋–ค ๊ฒƒ๋“ค์ด ์žˆ์„๊นŒ์š”?

์•ˆ๋…•ํ•˜์„ธ์š” ๋”ฐ๋กœ ๋ฌธ์„œํ™” ๋œ ๋ถ€๋ถ„์„ ์ฐพ์ง€ ๋ชปํ•ด ๊นƒ์„ ํ†ตํ•ด ์งˆ๋ฌธ ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

๋ฐฐ์†ก์กฐํšŒ API์˜ response์ค‘ state์˜ ์ •์˜๋œ ์ฝ”๋“œ๊ฐ’์ด ์•Œ๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.

delivered : ๋ฐฐ์†ก์™„๋ฃŒ
..... : ์ง‘ํ•˜
.....: ๋ฐฐ์†ก์ค‘

ํ˜น์€ ํ•ด๋‹น API๋ฅผ ์ด์šฉํ•˜์—ฌ '์ง‘ํ•˜' ์ƒํƒœ๋„ ์กฐํšŒ๊ฐ€ ๊ฐ€๋Šฅํ•œ ๊ฒƒ์ธ์ง€ ๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค.

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

npm install problem

below is tested on Ubuntu 18.04.

it needs root privilege.

$ npm install -g delivery-tracker-apiserver
npm WARN checkPermissions Missing write access to /usr/local/lib

install fails with the following error message.

$ sudo npm install -g delivery-tracker-apiserver delivery-tracker-client
npm ERR! Linux 5.0.0-31-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "delivery-tracker-apiserver" "delivery-tracker-client"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2

npm ERR! Cannot convert undefined or null to object
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/skyer9/npm-debug.log

Http GET request ์š”์ฒญ ์‹œ HttpResponse ์˜ status code ๊ฐ€ false ๋กœ ๋‚˜์˜ค๋Š” ์˜ค๋ฅ˜

Http GET request ์š”์ฒญ ์‹œ HttpResponse ์˜ status code ๊ฐ€ false ๋กœ ๋‚˜์˜ค๋Š” ์˜ค๋ฅ˜๊ฐ€ ๋‚˜์˜ต๋‹ˆ๋‹ค.
์‹ค์ œ๋กœ response๋ฅผ ์ œ๋Œ€๋กœ client์—์„œ ๋ฐ›์•˜๋Š”๋ฐ status code๊ฐ€ true ๊ฐ€ ์•„๋‹ˆ๋ผ false๋กœ ๋œน๋‹ˆ๋‹ค.

client ์ฝ”๋“œ:
using (var client = new HttpClient())
{
using (HttpResponseMessage response = await client.GetAsync(uriStr))
{
DbgMsg = string.Format("HTTP Get Req.");
if (response.IsSuccessStatusCode)
{
var responseContent = response.Content.ReadAsStringAsync().Result;
DbgMsg = string.Format("Req Success.");
return false;
}
DbgMsg = string.Format($"Req. Fail-{response.IsSuccessStatusCode}");
return false;
}
}
return false;

์—ฌ๊ธฐ์„œ ์‹ค์ œ๋กœ response๋ฅผ ๋ฐ›์•˜๋Š”๋ฐ , response.IsSuccessStatusCode ๊ฐ’์ด false๋กœ ๋œจ๋„ค์š”.
API server์—์„œ ๋ณด๋‚ด์ค„ ๋•Œ status code๋กœ ํ™•์ธ ๋ถ€ํƒ ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

GraphQL Service

REST API๋กœ ๊ตฌํ˜„๋˜์–ด์žˆ๋Š”๋ฐ GraphQL๋กœ ๋ž˜ํ•‘ํ•ด์„œ๋„ ์„œ๋น„์Šคํ•ด์ฃผ์‹œ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

npm์œผ๋กœ ์„ค์น˜์‹œ ์—๋Ÿฌ๊ฐ€ ๋‚˜๋Š”๋ฐ ใ… ใ… 

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/.nvm/versions/node/v10.15.0/lib/node_modules/delivery-tracker-apiserver/node_modules/iconv/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/root/.nvm/versions/node/v10.15.0/lib/node_modules/delivery-tracker-apiserver/node_modules/iconv/.node-gyp'
gyp ERR! System Linux 2.6.32-642.13.1.el6.x86_64
gyp ERR! command "/root/.nvm/versions/node/v10.15.0/bin/node" "/root/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/.nvm/versions/node/v10.15.0/lib/node_modules/delivery-tracker-apiserver/node_modules/iconv
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-01-15T07_19_32_346Z-debug.log

๋กœ์  ํƒ๋ฐฐ 404 ์—๋Ÿฌ

๋กœ์  ํƒ๋ฐฐ๋กœ ๊ฐ’์„ ๋„˜๊ธฐ๋ฉด
{
"message": "Request failed with status code 404"
}

๊ฐ’์ด ์ด๋ ‡๊ฒŒ ๋‚˜์™€์„œ ์กฐํšŒ๊ฐ€ ์•ˆ๋ฉ๋‹ˆ๋‹ค

cj๋Œ€ํ•œํ†ต์šดํƒ๋ฐฐ์กฐํšŒ 502 ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

https://tracker.delivery/guide ํŽ˜์ด์ง€์—์„œ cj๋Œ€ํ•œํ†ต์šดํƒ๋ฐฐ๋ฅผ ์กฐํšŒํ•˜๋ฉด ์ฃผ๋ง๋ถ€ํ„ฐ ๊ณ„์† Loading.. ๋ฉ”์‹œ์ง€๋งŒ ์ฐํ˜€์„œ
๋ณ„๋„๋กœ ๋ฉ”์‹œ์ง€๋ฅผ ํ™•์ธํ•ด๋ณด๋‹ˆ 502 BadGateway ๋“ฑ์˜ ๋ฉ”์‹œ์ง€๊ฐ€ ๋ฐ˜ํ™˜๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ–ˆ์Šต๋‹ˆ๋‹ค.

ํ˜น์‹œ cj์ธก์—์„œ ์™ธ๋ถ€ ์ ‘๊ทผ์„ ๋ง‰์•„์„œ ์ƒ๊ธฐ๋Š” ํ˜„์ƒ์ผ๊นŒ์š”?

๋ฐ”์˜์‹œ๊ฒ ์ง€๋งŒ ๋ฌด์Šจ ๋ฌธ์ œ์ธ์ง€ ์•Œ๋ ค์ฃผ์‹ค ์ˆ˜ ์žˆ์œผ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

[DHL] 504 Gateway Time-out ์—๋Ÿฌ ๋ฐœ์ƒ

ํ™ˆํŽ˜์ด์ง€ ๋ฐฐ์†ก ์กฐํšŒ API์—์„œ๋„ Loading๋งŒ ๋œจ๊ณ ,
์ง์ ‘ GET ์š”์ฒญ ํ•˜๋ฉด 504 Gateway Time-out์ด ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

ํ™•์ธ ํ•ด์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

๋กฏ๋ฐํƒ๋ฐฐ error ใ…œ.ใ…œ

๋กฏ๋ฐํƒ๋ฐฐ ์‚ฌ์ดํŠธ ๋ฆฌ๋‰ด์–ผ ๋˜๋ฉด์„œ tracking ์ ‘๊ทผ url์ด ๋ณ€๊ฒฝ๋œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
์กฐํšŒ๊ฐ€ ์•ˆ๋˜๋„ค์šฉ ์—‰์—‰ ;ใ…‚;

Pantos Express ์ถ”๊ฐ€ ๋ถ€ํƒ ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

์•ˆ๋…•ํ•˜์„ธ์š”

ํ‰์†Œ delivery tracker๋ฅผ ์• ์šฉํ•˜๊ณ  ์žˆ๋Š” ์ด์šฉ์ž ์ž…๋‹ˆ๋‹ค.
ํ˜น์‹œ ๊ดœ์ฐฎ์œผ์‹œ๋‹ค๋ฉด, ์šด์†ก์‚ฌ์— ํŒํ† ์Šค ์ถ”๊ฐ€ํ•ด์ฃผ์‹ค ์ˆ˜ ์žˆ์œผ์‹ค๊นŒ์š”~?

๋Š˜ ๊ฐ์‚ฌ ๋“œ๋ฆฌ๋ฉฐ, ๊ฑด๊ฐ• ์œ ์˜ํ•˜์„ธ์š” ^.^

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!!!!!!!!!!!!!!!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.