エラーメッセージ / 取得したエラー結果 / エラー原因

PHP用語集

カテゴリー: Twitter API  閲覧数:274 配信日:2023-01-19 16:29


エラーメッセージ


'Read-only application cannot POST.'

日本語訳
読み取り専用のアプリケーションではPOSTできません。

取得したエラー結果


object(stdClass)[17]
object(stdClass)[177]
 public 'request' => string '/1.1/statuses/update.json' (length=25)
 public 'error' => string 'Read-only application cannot POST.' (length=34)


エラー原因


「User authentication settings」で、「Read」にチェックを入れていたことが原因だと思われます。
User authentication settings
You can change these selections anytime.
App permissions

(required)
These permissions enable OAuth 1.0a Authentication.

Read
Read Tweets and profile information

Read and write
Read and Post Tweets and profile information


※アクセスレベル「Essential」「Elevated」は関係ありません。
「Elevated」でも「Read」にチェックを入れた状態でPOSTすると、このエラーメッセージが表示されます。

週間人気ページランキング / 7-27 → 8-2
順位 ページタイトル抜粋 アクセス数
1 PHPで定数を定義する方法は2種類ある / 配列定数の定義 7
2 T_CONSTANT_ENCAPSED_STRING | エラーメッセージ 5
3 ブラウザを閉じたらセッションデータはどうなるの? | セッション 4
3 PHPにおけるメソッドのオーバーライドについて /「引数の数や型は、親クラスのメソッドと完全に一致していなければなりません。」とは具体的にどういう意味ですか? 4
4 「POSIX正規表現」と「PCRE正規表現」の違い 3
4 Fatal error: Uncaught Error: Call to a member function modify() on string | Fatal error(エラーメッセージ) 3
4 Fatal error: require_once(): Failed opening required 'PEAR.php' | Fatal error(エラーメッセージ) 3
4 コード例 … 「例外処理」はネストすることができる 3
4 Parse error: syntax error, unexpected 'public' (T_PUBLIC) | Parse error(エラーメッセージ) 3
4 Fatal error: Access level to ▲::$△ must be protected (as in class ●) or weaker | Fatal error(エラーメッセージ) 3
4 ( ! ) Warning: file_put_contents(/a/b.jpg): failed to open stream: No such file or directory in | エラーメッセージ 3
4 インポートするデータを受信できませんでした。ファイル名が送信されていないか、ファイルサイズが PHP の設定で許可された最大値を超えています。FAQ 1.16 をご覧ください | エラーメッセージ 3
4 ブラウザを閉じたらセッションデータはどうなるの? | セッション 3
5 $this | クラスとオブジェクト 2
5 ログイン 2
5 ob_start | 出力バッファリング制御(関数) 2
5 HTTP_VIA | 環境変数 2
5 dirname() / (__FILE__ ) / basename( dirname( __FILE__ ) ); | 関数 2
5 curl で Cookie を使用する 2
5 Fatal error: Using $this when not in object context in /○○.php on line △△ | Fatal error(エラーメッセージ) 2
2025/8/3 1:01 更新
指定期間人気ページランキング / 2020-5-28 → 2025-8-2
順位 ページタイトル抜粋 アクセス数
1 PHP用語 6693
2 ブラウザを閉じたらセッションデータはどうなるの? | セッション 2502
3 Parse error: syntax error, unexpected 'public' (T_PUBLIC) | Parse error(エラーメッセージ) 2447
4 ブラウザを閉じたらセッションデータはどうなるの? | セッション 1664
5 【テスト投稿】テスト | 1133
6 セッション管理が必要な理由は、HTTPプロトコルには状態を保持する機能がないため | セッション 1058
7 PHPで定数を定義する方法は2種類ある / 配列定数の定義 984
8 Fatal error: Access level to ▲::$△ must be protected (as in class ●) or weaker | Fatal error(エラーメッセージ) 882
9 Fatal error: Uncaught Error: Call to a member function modify() on string | Fatal error(エラーメッセージ) 842
10 コード例 … 「例外処理」はネストすることができる 836
11 curl で Cookie を使用する 832
12 Fatal error: require_once(): Failed opening required 'PEAR.php' | Fatal error(エラーメッセージ) 831
13 Fatal error: Uncaught RuntimeException: SplFileObject::__construct(): failed to open stream: Permission denied in | Fatal error(エラーメッセージ) 729
14 定数 719
15 インターフェイス | クラスとオブジェクト 694
16 Fatal error: Uncaught HeadlessChromium\Exception\OperationTimedOut: Operation timed out (3sec) in | Fatal error(エラーメッセージ) 683
17 メンバー | クラスとオブジェクト 645
18 Warning: include() [function.include]: Failed opening '**.php' for inclusion (in | Warning(エラーメッセージ) 630
19 ( ! ) Fatal error: Uncaught PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column | Fatal error(エラーメッセージ) 600
20 Warning: strlen() expects parameter 1 to be string, array given in ○○.php on line △△ | Warning(エラーメッセージ) 578
2025/8/3 1:01 更新