Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Response body is incorrect, Can't extract token and secret from this:

Open
#74 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, java

Research direction

Start by reviewing the REST_CALLBACK_URL_TEMPLATE, intent_scheme, and intent_host values shown in the issue alongside the Twitter Developer console callback settings. Verify that the configured callback is approved and that the OAuth flow returns to the Android app without the response-body error.

Written by the indexing model from the issue text.

Description

I have added the FALLBACK_URL = "https://codepath.github.io/android-rest-client-template/success.html" in my App setting of Twitter Developer console.
I have also mentioned String REST_CALLBACK_URL_TEMPLATE = "intent://%s#Intent;action=android.intent.action.VIEW;scheme=%s;package=%s;S.browser_fallback_url=%s;end";
oauth //intent_scheme
codepathtweets //intent_host
in my code but I am getting this issueResponse body is incorrect. Can't extract token and secret from this: '<?xml version='1.0' encoding='UTF-8'?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors>' .
However I am getting authorisation successful in browser.

When I am replacing the value of REST_CALLBACK_URL_TEMPLATE to " " blank I am able to authorise the App and not getting any exception but unable to navigate to App.

Dominant language
Java
Stars
327
Forks
169
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from codepath/android-rest-client-template

All issues in codepath/android-rest-client-template

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.