ParseTwitterUtils-Android icon indicating copy to clipboard operation
ParseTwitterUtils-Android copied to clipboard

Twitter OAuth failure - "Error parsing a meta element's content"

Open grantgumina opened this issue 8 years ago • 3 comments

I posted this on the Parse Server project page and was recommended I move the issue to this project instead.

I'm attempting to add Twitter authentication to my Android application, but I'm running into the following issue when I call the ParseTwitterUtils.logIn method. Via Logcat, I can see the following output:

03-21 13:19:32.775 24141-24141/com.vearlo I/chromium: [INFO:CONSOLE(8)] "The value "device-width;" for key "width" is invalid, and has been ignored.", source: https://api.twitter.com/oauth/authenticate?oauth_token=hrWTEAAAAAAAuLuOAAABU5rVEyg (8)
03-21 13:19:32.775 24141-24141/com.vearlo I/chromium: [INFO:CONSOLE(8)] "The value "1.0;" for key "initial-scale" was truncated to its numeric prefix.", source: https://api.twitter.com/oauth/authenticate?oauth_token=hrWTEAAAAAAAuLuOAAABU5rVEyg (8)
03-21 13:19:32.775 24141-24141/com.vearlo I/chromium: [INFO:CONSOLE(8)] "The value "1.0;" for key "maximum-scale" was truncated to its numeric prefix.", source: https://api.twitter.com/oauth/authenticate?oauth_token=hrWTEAAAAAAAuLuOAAABU5rVEyg (8)
03-21 13:19:32.776 24141-24141/com.vearlo I/chromium: [INFO:CONSOLE(8)] "Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.", source: https://api.twitter.com/oauth/authenticate?oauth_token=hrWTEAAAAAAAuLuOAAABU5rVEyg (8)

This line: Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.", seems to be the culprit.

Has anyone seen a similar issue? Facebook login works fine.

grantgumina avatar Mar 26 '16 07:03 grantgumina

Anyone? If it helps, I'm hosting a Parse Server instance on Heroku and the app.json file has the followig info:

"oauth": {
    "twitter": {
      "consumer_key": "REDACTED",
      "consumer_secret": "REDACTED"
    },
     "facebook": {
      "appIds": "REDACTED"
    }
  }

grantgumina avatar Mar 29 '16 02:03 grantgumina

The error can be ignored. I solved my twitter login problems by filling the consumer key and consumer secret when constructing the ParseServer object in the index.js. Follow the solution here .

mkpazon avatar Aug 01 '16 16:08 mkpazon

I filled the keys in index.js but i am still getting the error on my android application. I/chromium: [INFO:CONSOLE(8)] "Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.", source: https://api.twitter.com/oauth/authenticate?oauth_token=19d16gAAAAAAxnuNAAABV_D-Uqc (8)

shadialian avatar Oct 23 '16 10:10 shadialian