Thanks for reply
Here's the notarytool command I used. (try both keychain profile and id base)
$ xcrun notarytool submit ./mynotarytarget.pkg --team-id "myteamid" --keychain-profile "Notarize"
$ xcrun notarytool history --apple-id "myappleid@email" --password "mypassword" --team-id "myteamid"
this is altool command before i used. (worked for same Network)
$ xcrun altool --notarize-app --primary-bundle-id "mybundleid" --username "myappleid@email" --password "mypassword" --file ./mynotarytarget.pkg
Here's log with -vvvv option
[00:39:51.918Z] Info [API] Initialized Notary API with base URL: https://appstoreconnect.apple.com/notary/v2/
[00:39:51.919Z] Info [API] Preparing GET request to URL: https://appstoreconnect.apple.com/notary/v2/submissions?, Parameters: [:], Custom Headers: private<Dictionary<String, String>>
[00:39:51.919Z] Debug [AUTHENTICATION] Delaying current request to refresh app-specific password token.
[00:39:51.920Z] Info [API] Preparing GET request to URL: https://appstoreconnect.apple.com/notary/v2/asp?, Parameters: [:], Custom Headers: private<Dictionary<String, String>>
[00:39:51.920Z] Debug [AUTHENTICATION] Authenticating request to '/notary/v2/asp' with Basic Auth. Username: myappleid@email, Password: private<String>, Team ID: myteamid
[00:39:51.921Z] Debug [TASKMANAGER] Starting Task Manager loop to wait for asynchronous HTTP calls.
[00:39:52.069Z] Error [API] Encountered HTTP error: Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600000a3d680 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <00634467-3F33-4CCE-A5A1-EFA1EEE622BC>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <00634467-3F33-4CCE-A5A1-EFA1EEE622BC>.<1>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://appstoreconnect.apple.com/notary/v2/asp?, NSErrorFailingURLKey=https://appstoreconnect.apple.com/notary/v2/asp?, _kCFStreamErrorDomainKey=1}
[00:39:52.070Z] Error [TASKMANAGER] Completed Task with ID 2 has encountered an error.
[00:39:52.070Z] Debug [TASKMANAGER] Ending Task Manager loop.
Error: HTTPError(statusCode: nil, error: Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600000a3d680 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <00634467-3F33-4CCE-A5A1-EFA1EEE622BC>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <00634467-3F33-4CCE-A5A1-EFA1EEE622BC>.<1>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://appstoreconnect.apple.com/notary/v2/asp?, NSErrorFailingURLKey=https://appstoreconnect.apple.com/notary/v2/asp?, _kCFStreamErrorDomainKey=1})