Skip to content

civiendpointimport - #32

Open
4ndygu wants to merge 1 commit into
masterfrom
fixbugs
Open

civiendpointimport#32
4ndygu wants to merge 1 commit into
masterfrom
fixbugs

Conversation

@4ndygu

@4ndygu 4ndygu commented Oct 4, 2018

Copy link
Copy Markdown
Owner

No description provided.

@johntwyman

Copy link
Copy Markdown

I manually committed this change and unfortunately the error persists. I've tried with my browser in incognito mode too.

I also tried filling in the OSDI endpoint (root) input field in the Import section but still saw the error.
osdi_export_error

@4ndygu

4ndygu commented Oct 6, 2018

Copy link
Copy Markdown
Owner Author

hmm, seems like this would be a javascript error with the following blob:

	var data = new Object();

	var formResults = CRM.$("#OSDIExportForm").serializeArray().map(function(x){
		data[x.name] = x.value;}
	); 

     var endpoint = data["civiendpoint"];
	var endpointroot = data["civiendpoint"];
     if (endpoint.indexOf("actionnetwork.org") !== -1) {
	    endpointroot = endpointroot.substring(0, endpointroot.indexOf("/people"));
     } else {
	    endpointroot = endpointroot.substring(0, endpointroot.indexOf("/civicrm"))
		    + "/civicrm";
     }

I'm still unable to replicate the error, but could you let me know what happens if you output some of this code in your console?

Additionally, could you supply the /people endpoint, rather than the root?

@4ndygu

4ndygu commented Oct 6, 2018

Copy link
Copy Markdown
Owner Author

ah - i can replicate it now. If you supply the actual /people endpoint rather than the root, this should work!

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

Successfully merging this pull request may close these issues.

2 participants