Copy link to clipboard
Copied
Hi
I am continuously getting the the following mesage even though I have created the API key correctly.
This application domain (https://st-gaspower.portal.ge.com) is not authorized to use the provided View SDK Client ID.
Subhendu
Copy link to clipboard
Copied
Hi Subhendu,
Thanks for using PDF Embed API. Unfortunately, I'm not able to view your website since it's asking for login with an SSO ID. Is there any other way to view the website?
Would be great if you could provide more details, such as,
- How the client ID was generated.
- Code snippet where you're using the client ID.
- Screenshot of the error.
These would be super helpful in debugging the issue. Thanks!
Copy link to clipboard
Copied
Hi Sumona
Sorry for being late. Please find my comments beloow.
- How the client ID was generated. : The same way I had for the other project which is working fine.
1. https://www.adobe.io/apis/documentcloud/dcsdk/pdf-embed.html - > Get Started Buttong
2. https://www.adobe.io/apis/documentcloud/dcsdk/gettingstarted.html -> Tried to use both the options "Go to I/O Console" and "Get Started"
3. https://console.adobe.io/projects -> "Create new project"
4. https://console.adobe.io/projects/326764/4566206088344561616/overview -> Added the API with the Domain name "st-gaspower.portal.ge.com"
- Code snippet where you're using the client ID.
This is the same code which is working for https://console.adobe.io/projects/326764/4566206088344545840/apis/ViewSDK/details .
We are just chaning the API Key.
$.getScript("https://documentcloud.adobe.com/view-sdk/main.js", function () {
var viewerConfig = {
showAnnotationTools: false,
enableFormFilling: false,
showLeftHandPanel: true,
showDownloadPDF: true,
showPrintPDF: true,
showPageControls: true,
dockPageControls: true,
defaultViewMode: "", /* Allowed possible values are "FIT_PAGE", "FIT_WIDTH" or "". */
};
var ids={
"st-prev-www.gepower.com":"61d3e4e8c8414c18ab503e069393145b",
"st-gaspower.portal.ge.com":"fabf91fe9c9343bb92f9b12ce4dc0cdc",
"prev-www.gepower.com":"372b3ea823ba48ad9f15518d428b9a38"
};
/* Wait for Adobe Document Cloud View SDK to be ready */
document.addEventListener("adobe_dc_view_sdk.ready", function () {
/* Initialize the AdobeDC View object */
var adobeDCView = new AdobeDC.View({
/* Pass your registered client id */
clientId: ids[location.hostname],
/* Pass the div id in which PDF should be rendered */
divId: "pdf_modal",
});
/* Invoke the file preview API on Adobe DC View object */
adobeDCView.previewFile({
/* Pass information on how to access the file */
content: {
/* Location of file where it is hosted */
location: {
url: $('.pdf_btn').data('pdfpath'),
},
},
/* Pass meta data of file */
metaData: {
/* file name */
fileName: $('.pdf_name').data('pdfname')
}
}, viewerConfig);
});
});
- Screenshot of the error.
These would be super helpful in debugging the issue. Thanks!
Thanks for help.
Subhendu
Copy link to clipboard
Copied
Hi Subhendu,
We checked that the mapping between the domain "st-gaspower.portal.ge.com" and the client ID "fabf91fe9c9343bb92f9b12ce4dc0cdc" is correct.
Would it be possible to share the network logs when the website is launched and the error shows up?
And is there a way for us to view the website where this error is displayed while rendering the PDF? Please let us know.
We will try our best to resolve the issue.
Thanks.
Copy link to clipboard
Copied
Hi Sumona
This site is SSO enabled site. If you agree we can have a screen share session and I can go through. Pease let me know the timing. I was IST 2pm to IST 9pm.
Getting the following error
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/view-sdk/2.10.3_1.9.0-0dd3fe2/private/main.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/view-sdk/2.10.3_1.9.0-988ffaa/private/ViewSDKInterface.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/view-sdk/2.10.3_1.9.0-988ffaa/private/dc-app-launcher.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/view-sdk/2.10.3_1.9.0-988ffaa/private/ViewSDK.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/dc-core/2.10.3/private/dc-core.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
about:blank:1 GET about:blank net::ERR_UNKNOWN_URL_SCHEME
Image (async)
(anonymous) @ bxf0ivf.js:40
setTimeout (async)
Ga @ bxf0ivf.js:40
active @ bxf0ivf.js:38
C @ bxf0ivf.js:26
Da @ bxf0ivf.js:36
R.i @ bxf0ivf.js:35
(anonymous) @ bxf0ivf.js:33
Promise.then (async)
Ba.start @ bxf0ivf.js:33
Ca @ bxf0ivf.js:35
(anonymous) @ bxf0ivf.js:39
ja @ bxf0ivf.js:23
T.load @ bxf0ivf.js:39
Ja @ bxf0ivf.js:40
Ha.load @ bxf0ivf.js:39
window.Typekit.load @ bxf0ivf.js:40
onload @ dc-core.js:2
load (async)
configureTypekit @ dc-core.js:2
Provider @ dc-core.js:2
Lg @ dc-core.js:2
fi @ dc-core.js:2
co @ dc-core.js:2
Qj @ dc-core.js:2
Kj @ dc-core.js:2
yj @ dc-core.js:2
Ig @ dc-core.js:2
bk @ dc-core.js:2
(anonymous) @ dc-core.js:2
Nj @ dc-core.js:2
ik @ dc-core.js:2
r.render @ dc-core.js:2
(anonymous) @ AdobeDCViewApp.js:2
Promise.then (async)
_executeAction @ AdobeDCViewApp.js:2
JAOs.window.renderApp @ AdobeDCViewApp.js:2
MessageExecutor._executeAction @ ViewSDK.js:1
(anonymous) @ ViewSDK.js:1
setTimeout (async)
MessageExecutor._executeAction @ ViewSDK.js:1
(anonymous) @ ViewSDK.js:1
setTimeout (async)
MessageExecutor._executeAction @ ViewSDK.js:1
(anonymous) @ ViewSDK.js:1
setTimeout (async)
MessageExecutor._executeAction @ ViewSDK.js:1
(anonymous) @ ViewSDK.js:1
setTimeout (async)
MessageExecutor._executeAction @ ViewSDK.js:1
(anonymous) @ ViewSDK.js:1
setTimeout (async)
MessageExecutor._executeAction @ ViewSDK.js:1
(anonymous) @ ViewSDK.js:1
setTimeout (async)
MessageExecutor._executeAction @ ViewSDK.js:1
MessageExecutor._takeAction @ ViewSDK.js:1
MessageExecutor.execute @ ViewSDK.js:1
MessageReceiver._messageReceived @ ViewSDK.js:1
_receiveMessageHelper @ ViewSDK.js:1
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/dc-core/2.10.3/private/dc-extras.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/view-sdk/2.10.3_1.9.0-988ffaa/private/AdobeDCViewApp.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/dcpreviewdropin/2.9.1_1.486.0/private/bootstrap.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/dc-core/2.10.3/private/dc-core.css.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/dc-core/2.10.3/private/dc-extras.css.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/dc-rendition-provider/2.9.1_3.37.0/private/rendition.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Subhendu
Copy link to clipboard
Copied
Hello
Did you finally get a solution to your problem? I'm facing the same issue 🙂
Copy link to clipboard
Copied
I'm also encountering this error - anyone have a resolution?