Comments (4)
- うっひょー!!って netcontextをcontextに置き換えたらライブラリ内でリフレクションでcontext判定してるところが等値性判定しててassignable判定じゃなかったので死んでた
- gorillaかなにかのmapのkeyをcontextにしててnetcontextとcontextの違いかなんかで意図通り値が取れなくなって死んでた
結論:netcontextとcontext周りで死ぬ
from nouhau.
あとライブラリのビルドタグで死んだパターンも聞いた
from nouhau.
WARNING WriteHeader called multiple times on request.
を放置しているといつの間にか挙動が変わっていた。
存在しないページではAngularにNotFound画面を出させつつ、検索エンジンのクローラのためにHTTPステータスコードを404を返そうとして↓みたいなコード書いていたら、 api_version: go1
のままだとレスポンスボディにindex.htmlが入らなくなった。
ucon.HandleFunc("GET", "/", func(w http.ResponseWriter, r *http.Request, c context.Context) {
/** 中略 */
if isAllowedPath(r.URL.Path) == false {
w.WriteHeader(404) // SEOのため許容していないパスへのリクエストは404にする
}
http.ServeFile(w, r, "dist/index.html") // Angularのindex.html返す。※この中でもw.WriteHeader()は呼ばれている
})
api_version: go1.6
でデプロイしなおしたら従来の動作(レスポンスのステータスコードが404になりつつindex.htmlも落ちてくる)に戻った。
from nouhau.
tenntennさんの記事も見るとよい
from nouhau.
Related Issues (20)
- GCP Test用の機能たち HOT 2
- 複数ImageをPushした場合、最初のImageにContainer Analysisのmetadataがすべて入る HOT 2
- Traffic Splittingが既存のDeployされたRevisionには効かない HOT 6
- Authorized View(承認済みビュー)のユースケースをまとめる
- Service AccountはどこのProjectに存在するのか? HOT 1
- Stackdriver Metrics お役立ちLink
- LocalでApplication Default Credentialsを利用している時にG Suite APIやFirebase APIを実行するとgoogleapi: Error 403: Request had insufficient authentication scopes. になる HOT 14
- SQL学習コンテンツ HOT 1
- CI のログなどで gcloud コマンドのアニメーションがひどいことになるのを抑制する HOT 1
- google-cloud-go/spanner のバージョン間差分リーディングスレ HOT 29
- google-cloud-go/spanner のセッション周りの設定についての検討事項の一例
- Google Cloud Spanner Backup and Restore HOT 1
- Cloud Run --no-allow-unauthenticated
- Pub/Sub dead-letter topics
- Cloud Spanner Query Optimizer
- gcloud sdk error : ERROR:root:code for hash md5 was not found.
- DataStudioで複数の項目に対してある項目が占める割合を円グラフ以外でも表現する
- Spanner Emulator固有hint HOT 1
- OpenTelemetryにCloud Client Libraryのspanを連携した時にCloud Traceのspanを出力しないようにする HOT 1
- Cloud Client Library with OpenTelemetry 調査隊 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nouhau.