Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ask_practiceにアクセスすると「システムに問題が発生しました」と表示される #16

Closed
hrntknr opened this issue Mar 3, 2021 · 2 comments

Comments

@hrntknr
Copy link

hrntknr commented Mar 3, 2021

実行手順

  1. https://github.com/shigeki/ask_practice/tree/WIP/manualを参照し、URLを作成
    作成したURL: https://html5.ohtsu.org/ask_practice?name=hrntknr
  2. webブラウザから上記で作成したURLにアクセス

結果の予想

何かしらの正常なコンテンツが表示される

実際の結果

エラー画面が表示される

ステップ明記

2.のURLにアクセスする手順のところでエラーが発生した。

エラーメッセージ

hrntknr様: 申し訳ございません。システムに問題が発生しましたので https://github.com/shigeki/ask_practice/issues までお問い合わせください。github使いたくない、もしくはアカウントのない方は https://html5.ohtsu.org/question.html までお問い合わせください

環境

OS: ubuntu 21.04
Browser: google chrome Version 88.0.4324.182 (Official Build) (64-bit)

@hrntknr
Copy link
Author

hrntknr commented Mar 3, 2021

サーバーのソースコードを確認したところ、以下の部分により必ずエラーメッセージが表示されるようになっていると考えられます。こちらは想定される挙動ということで正しいでしょうか?

const name = req.query.name;
res.header('Content-Type', 'text/html;charset=utf-8');
res.send(`${name}様: 申し訳ございません。システムに問題が発生しましたので <a href="https://github.com/shigeki/ask_practice/issues">https://github.com/shigeki/ask_practice/issues</a> までお問い合わせください。github使いたくない、もしくはアカウントのない方は <a href="https://html5.ohtsu.org/question.html">https://html5.ohtsu.org/question.html</a> までお問い合わせください`);

@shigeki
Copy link
Owner

shigeki commented Mar 3, 2021

リスト毎にわかりやすくまとめられているのがGoodです。
コードまで調べていただきまして、はい、想定している挙動です。
課題が終わりましたのでクローズさせていただきます。

@shigeki shigeki closed this as completed Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants