Git Product home page Git Product logo

github-nippou-web's Introduction

Hi there 👋 I'm miya!

  • 🔭 I’m working as freelance engineer based in Japan.
  • 🌱 I’m currently learning Ruby, Go, Terraform, TypeScript, Next.js
  • 👯 My resume is here

github-nippou-web's People

Contributors

mh4gf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

github-nippou-web's Issues

VRTの導入

開発が落ち着いてきたため、リグレッションテストとしてVRTを導入したい。

CIの設定

  • linter, formatterを整備
  • GitHub Actionsを設定

READMEの拡充

コントリビュートしやすい状況を作りたい

サーバーでのパラメータのバリデーション

user, tokenが渡されていない場合、サーバーで以下のようなログが出るだけ

GET https://api.github.com/users//events?page=1&per_page=100: 401 Bad credentials []

ユーザーには500が返っている

あるべき姿

4XXエラーとして必要なパラメータを指示する

settingsGistIdの値が不正な場合、500エラーになる

背景

問い合わせをいただいた

github-nippouでrunを押したらこういうエラーが出たのですが、どうしたら良いでしょうか:ぐる目顔:
github-nippou-web.vercel.app/:1
       Failed to load resource: the server responded with a status of 500 ()
786-3264ade908fd4734.js:1 Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.
window.console.error

VercelのServer Componentのログ
サーバーから返却されるレスポンスがおかしいっぽい 👀

SyntaxError: Unexpected token I in JSON at position 0
    at JSON.parse (<anonymous>)
    at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
    at successSteps (node:internal/deps/undici/undici:6636:27)
    at node:internal/deps/undici/undici:1236:60
    at node:internal/process/task_queues:140:7
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
    at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

apiのログ
gistの取得にエラーが出ている 👀

Oct 20 04:04:33 PM  {"time":"2023-10-20T07:04:33.276316272Z","level":"ERROR","msg":"GET https://api.github.com/gists/@[問い合わせいただいた方のユーザー名]: 404 Not Found []"}

→ gistIdの入力フォームを空にしてRunを押してもらうと動いた

概要

gistの取得で404になった場合、適切なエラーメッセージを返したい

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.