Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Issuer Failing #69

Open
AramayisO opened this issue Dec 6, 2019 · 6 comments
Open

Add Issuer Failing #69

AramayisO opened this issue Dec 6, 2019 · 6 comments

Comments

@AramayisO
Copy link

AramayisO commented Dec 6, 2019

Adding an issuer with a URL and one-time code fails with the following error message:

Image from iOS

The issuer URLs and one-time codes are valid because after they failed I tried adding the issuers on the Android wallet app and they worked just fine.

Looking at the logs, I see that the Android wallet makes a GET request to the issuer URL, gets the "introductionURL" from the response, and then makes a POST request to the "introductionURL".

The iOS wallet app only makes the GET request. It does not follow up with a POST request to the "introductionURL".

@ghost
Copy link

ghost commented Dec 6, 2019

If you could post the full log, that'll help. Thanks!

@AramayisO
Copy link
Author

Here are the logs from the iOS and Android wallets
ios_logs.txt
android_logs.txt

I first tried to add the issuer on iOS. Then, after iOS failed, I used the same url and one-time code to add the issuer on Android.

@AramayisO
Copy link
Author

Any update on this issue by any chance?

@ghost
Copy link

ghost commented Jan 6, 2020

Not sure what the Issuer Profile looks like but from the iOS logs, it's not finding introductionURL for some reason.

{
      "message":"init call with recipient: Recipient(name: \" \", identity: \"\", identityType: \"email\", isHashed: false, publicAddress: 1J1TYynvh93midrGvhrgmgrfFiyJhHAYku, revocationAddress: nil, deprecatedGivenName: Optional(\"\"), deprecatedFamilyName: Optional(\"\")), issuer: PartialIssuer(version: Blockcerts.IssuerVersion.embedded, name: \"Tech Services\", email: \"tech@email.com\", image: 19106 bytes, id: e3c5f519-49bc-4277-b0a9-4ce392580102, url: tech.com, publicKeys: [], introductionMethod: Blockcerts.IssuerIntroductionMethod.unknown, revocationListURL: Optional(https:\/\/badges-dev.dx.fresnostate.edu\/api\/issuers\/e3c5f519-49bc-4277-b0a9-4ce392580102\/revocations))",
      "level":"debug",
      "tag":"IssuerIntroductionRequest",
      "date":"2019-12-06T20:58:06Z"
   },
   {
      "message":"start",
      "level":"info",
      "tag":"IssuerIntroductionRequest",
      "date":"2019-12-06T20:58:06Z"
   },
   {
      "message":"reporting failure issuerMissingIntroductionURL",
      "level":"debug",
      "tag":"IssuerIntroductionRequest",
      "date":"2019-12-06T20:58:06Z"
   },
   {
      "message":"IssuerIntroductionRequest response",
      "level":"info",
      "tag":"ManagedIssuer",
      "date":"2019-12-06T20:58:06Z"
   },
   {
      "message":"IssuerIntroductionRequest response: issuerMissingIntroductionURL. issuerInvalid. reason: missing, scope: introductionURL",
      "level":"error",
      "tag":"ManagedIssuer",
      "date":"2019-12-06T20:58:06Z"
   }

Noticing that it falls back to PartialIssuer in iOS which happens sometimes if it can't detect the version of the issuer profile or there's a problem with the parsing. Unfortunately it doesn't indicate what problem it had parsing it as an IssuerV2 or whatever language it uses (can't exactly remember right now).

Perhaps you can share the issuer profile here and I can check what might be the issue? it's probably a bug since android doesn't seem to have a problem, but maybe we can see what we can change/add for your issuer so it works on iOS.

@Dicipulofer
Copy link

Dicipulofer commented Sep 13, 2020

Hello,

I have the same issue. It was working (iOs), but now the error is occurring.

I`m attaching the Issuer profile file.
UFP_1.json.zip

@fabcom-aaron
Copy link

Figured this out. Cert Tools adds the IntroductionUrl entry to the issuer.json BUT the app is querying the json for an IntroductionURL entry which it doesn't find. Once I changed the IntroductionUrl->IntroductionURL and added
"IntroductionAuthenticationMethod":"basic" to the issuer profile the introduction goes through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants