Error Message issues due timestamp info

オープン
#33 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
api, backend

調査の方向性

The request handling starts in compass/app/Http/Controllers/Api.php, around line 137, where the incoming timestamp is passed on. The exception is thrown from Shard.php at line 199, so reproduce by sending a timestamp with a timezone offset to the API and read the stack trace from there. Done means an offset timestamp gets a proper API error response instead of the generic 'Whoops' page, and timestamps without an offset still work. The issue does not say whether offsets should be accepted and converted or rejected, so confirm that with the maintainer before choosing.

索引モデルが issue の本文から書いたものです。

説明

I came up with an interesting problem here

https://github.com/aaronpk/Compass/blob/c17f7b2ee237061c9f5de8fb63771120239084c1/compass/app/Http/Controllers/Api.php#L137

I'm storing in the database using no timezone offset. So just Z. But, if I send in an API query with an offset in the timezone, it responds, Exception in Shard.php line 199:

It should respond with a proper API error instead of a "Whoops, looks like something went wrong." message.

Not sure if you have any thoughts on the practical problem I have here. The app I used to send the data didn't have the option to send timestamp with offset so I didn't. I usually figure it out later for display purposes.

主要言語
JavaScript
スター
143
フォーク
33
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aaronpk/Compass のほかの issue

aaronpk/Compass の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。