万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

  • ・資産運用おすすめ
    10万円は1000円くらい利益
    資産運用ブログ アセマネ
    • ・寄付お願いします
      YENTEN:YYzNPzdsZWqr5THWAdMrKDj7GT8ietDc2W
      BitZenny:ZfpUbVya8MWQkjjGJMjA7P9pPkqaLnwPWH
      c0ban:8KG95GXdEquNpPW8xJAJf7nn5kbimQ5wj1
      Skycoin:KMqcn7x8REwwzMHPi9fV9fbNwdofYAWKRo

    redirect_uri_mismatch

    Error 400: redirect_uri_mismatch
    
    You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.
    
    If you're the app developer, register the redirect URI in the Google Cloud Console.

    redirectに入れるってのはわかるけどどう辿るんだよ???

    f:id:shinriyo:20211121123113p:plain

    https://storejextensions.org/faq/i-receive-a-redirect-uri-mismatch-error-when-trying-to-login-with-google-why.html

    ここみたらそこか。

    さらにここもみた zenn.dev

    if (process.env.FIREBASE_CONFIG && typeof window !== 'undefined' && !firebase.apps.length) {
      firebase.initializeApp(JSON.parse(process.env.FIREBASE_CONFIG))
    } else {
      console.warn('FIREBASE_CONFIG が未設定です')
    }

    initializePushNotificationのやつ

    E/flutter (32449): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Null check operator used on a null value
    E/flutter (32449): #0      MethodChannelFirebaseMessaging.registerBackgroundMessageHandler (package:firebase_messaging_platform_interface/src/method_channel/method_channel_messaging.dart:180:53)
    E/flutter (32449): #1      FirebaseMessagingPlatform.onBackgroundMessage= (package:firebase_messaging_platform_interface/src/platform_interface/platform_interface_messaging.dart:102:16)
    E/flutter (32449): #2      FirebaseMessaging.onBackgroundMessage (package:firebase_messaging/src/messaging.dart:73:31)
    E/flutter (32449): #3      FCMConfig.init (package:fcm_config/src/io/fcm_config.dart:122:25)
    E/flutter (32449): <asynchronous suspension>
    E/flutter (32449): #4      PushNotificationUtil.initializePushNotification (package:laughter/utils/push_notification.dart:33:5)
    E/flutter (32449): <asynchronous suspension>
    E/flutter (32449): #5      Future.wait.<anonymous closure> (dart:async/future.dart)
    E/flutter (32449): <asynchronous suspension>
    E/flutter (32449): #6      _FutureBuilderState._subscribe.<anonymous closure> (package:flutter/src/widgets/async.dart)
    E/flutter (32449): <asynchronous suspension>

    Google Nest mini繋がらない

    iPhoneのアプリからやろうとした。 中古はなぜか繋がらない リセットする?

    裏側にボタンないのは上から押すやつ www.youtube.com

    Can't connect to speaker or display's hotspot in the Google Home app - Google Nest Help

    あと、iPhoneはいつものWifiではなくNestMin1408ってやつを使ってつなぐ・・・・。 そこではまった。

    その後でいつものWifiに!

    React Firebaseで

    Firebase をフロントエンドから適切に隠蔽するための「Hooks Injection パターン」 - JX通信社エンジニアブログ

    FIREBASE_CONFIGの設定

    export FIREBASE_CONFIG='{"apiKey":"これ1","projectId":"これ2"}'

    これ1、これ2をFirebaseのconsoleからとる。

    このエラーもあるので。

    FirebaseError: Missing or insufficient permissions.

    セキュリティールールが false を返しているときに吐かれる

    firestore.rulesにあったりする。

    code: 'auth/auth-domain-config-required', message: 'Be sure to include authDomain when calling firebas…llowing the instructions in the Firebase console.

    authDomain も入れないといけない FIREBASE_CONFIGに。こんな感じか。

    "projectId":"プロジェクトID","authDomain":"プロジェクトID.firebaseapp.com"

    Where can I find my Firebase apiKey and authDomain - Stack Overflow